the keeper of cache entry Key, Value, and caching-related entry metadata More...
#include <ClpMap.h>
Public Member Functions | |
Entry (const Key &, const Value &, const Ttl) | |
bool | expired () const |
whether the entry is stale More... | |
Public Attributes | |
Key | key |
the entry search key; see ClpMap::get() More... | |
Value | value |
cached value provided by the map user More... | |
time_t | expires = 0 |
get() stops returning the entry after this time More... | |
uint64_t | memCounted = 0 |
memory accounted for this entry in our ClpMap More... | |
Detailed Description
Constructor & Destructor Documentation
◆ Entry()
ClpMap< Key, Value, MemoryUsedBy >::Entry::Entry | ( | const Key & | aKey, |
const Value & | v, | ||
const Ttl | ttl | ||
) |
Definition at line 290 of file ClpMap.h.
References ClpMap< Key, Value, MemoryUsedBy >::Entry::expires, SetToNaturalSumOrMax(), and squid_curtime.
Member Function Documentation
◆ expired()
|
inline |
Definition at line 56 of file ClpMap.h.
References ClpMap< Key, Value, MemoryUsedBy >::Entry::expires, and squid_curtime.
Member Data Documentation
◆ expires
time_t ClpMap< Key, Value, MemoryUsedBy >::Entry::expires = 0 |
Definition at line 61 of file ClpMap.h.
Referenced by ClpMap< Key, Value, MemoryUsedBy >::Entry::Entry(), and ClpMap< Key, Value, MemoryUsedBy >::Entry::expired().
◆ key
Key ClpMap< Key, Value, MemoryUsedBy >::Entry::key |
◆ memCounted
uint64_t ClpMap< Key, Value, MemoryUsedBy >::Entry::memCounted = 0 |
◆ value
Value ClpMap< Key, Value, MemoryUsedBy >::Entry::value |
The documentation for this class was generated from the following file:
- src/base/ClpMap.h