|
Squid Web Cache master
|
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 | |
Public Attributes | |
| Key | key |
| the entry search key; see ClpMap::get() | |
| Value | value |
| cached value provided by the map user | |
| time_t | expires = 0 |
| get() stops returning the entry after this time | |
| uint64_t | memCounted = 0 |
| memory accounted for this entry in our ClpMap | |
| 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.
|
inline |
Definition at line 56 of file ClpMap.h.
References ClpMap< Key, Value, MemoryUsedBy >::Entry::expires, and squid_curtime.
| 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 ClpMap< Key, Value, MemoryUsedBy >::Entry::key |
| uint64_t ClpMap< Key, Value, MemoryUsedBy >::Entry::memCounted = 0 |
| Value ClpMap< Key, Value, MemoryUsedBy >::Entry::value |