ClpMap< Key, Value, MemoryUsedBy >::Entry Class Reference

the keeper of cache entry Key, Value, and caching-related entry metadata More...

Collaboration diagram for ClpMap< Key, Value, MemoryUsedBy >::Entry:

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

template<class Key, class Value, uint64_t MemoryUsedBy = DefaultMemoryUsage>
class ClpMap< Key, Value, MemoryUsedBy >::Entry

Definition at line 89 of file ClpMap.h.

Constructor & Destructor Documentation

◆ Entry()

template<class Key , class Value , uint64_t MemoryUsedBy>
ClpMap< Key, Value, MemoryUsedBy >::Entry::Entry ( const Key &  aKey,
const Value &  v,
const Ttl  ttl 
)

Definition at line 277 of file ClpMap.h.

Member Function Documentation

◆ expired()

template<class Key , class Value , uint64_t MemoryUsedBy = DefaultMemoryUsage>
bool ClpMap< Key, Value, MemoryUsedBy >::Entry::expired ( ) const
inline

Definition at line 95 of file ClpMap.h.

References ClpMap< Key, Value, MemoryUsedBy >::Entry::expires, and squid_curtime.

Member Data Documentation

◆ expires

template<class Key , class Value , uint64_t MemoryUsedBy = DefaultMemoryUsage>
time_t ClpMap< Key, Value, MemoryUsedBy >::Entry::expires = 0

Definition at line 100 of file ClpMap.h.

Referenced by ClpMap< Key, Value, MemoryUsedBy >::Entry::expired().

◆ key

template<class Key , class Value , uint64_t MemoryUsedBy = DefaultMemoryUsage>
Key ClpMap< Key, Value, MemoryUsedBy >::Entry::key

Definition at line 98 of file ClpMap.h.

◆ memCounted

template<class Key , class Value , uint64_t MemoryUsedBy = DefaultMemoryUsage>
uint64_t ClpMap< Key, Value, MemoryUsedBy >::Entry::memCounted = 0

Definition at line 101 of file ClpMap.h.

◆ value

template<class Key , class Value , uint64_t MemoryUsedBy = DefaultMemoryUsage>
Value ClpMap< Key, Value, MemoryUsedBy >::Entry::value

Definition at line 99 of file ClpMap.h.


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

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors