dodo  0.0.1
A C++ library to create containerized Linux services
dodo::common::Cache< Key, Value >::CacheEntry Struct Reference

A CachedEntry holds the Value as well as last load and last hit time. More...

#include <cache.hpp>

Collaboration diagram for dodo::common::Cache< Key, Value >::CacheEntry:

Data Fields

std::chrono::steady_clock::time_point hit_time
 The last time get or load was called on this Key. More...
 
std::chrono::steady_clock::time_point load_time
 The last time load was called on this Key. More...
 
Value value
 The cached Value. More...
 

Detailed Description

template<class Key, class Value>
struct dodo::common::Cache< Key, Value >::CacheEntry

A CachedEntry holds the Value as well as last load and last hit time.

Definition at line 67 of file cache.hpp.

Field Documentation

◆ hit_time

template<class Key , class Value >
std::chrono::steady_clock::time_point dodo::common::Cache< Key, Value >::CacheEntry::hit_time

The last time get or load was called on this Key.

Definition at line 71 of file cache.hpp.

◆ load_time

template<class Key , class Value >
std::chrono::steady_clock::time_point dodo::common::Cache< Key, Value >::CacheEntry::load_time

The last time load was called on this Key.

Definition at line 69 of file cache.hpp.

◆ value

template<class Key , class Value >
Value dodo::common::Cache< Key, Value >::CacheEntry::value

The cached Value.

Definition at line 73 of file cache.hpp.


The documentation for this struct was generated from the following file: