|
| bool | get (const Key &key, Value &value) override |
| | Retrieve value from cache and update LRU order.
|
| void | put (const Key &key, const Value &value, uint64_t size) override |
| | Insert or update value in cache with LRU eviction.
|
| void | clear () override |
| | Clear all cached entries.
|
| uint64_t | get_hits () const override |
| uint64_t | get_misses () const override |
| void | reset_stats () override |
◆ clear()
template<typename Key, typename Value>
◆ get()
template<typename Key, typename Value>
| bool gs::LRUCache< Key, Value >::get |
( |
const Key & | key, |
|
|
Value & | value ) |
|
inlineoverridevirtual |
Retrieve value from cache and update LRU order.
- Parameters
-
| key | Address to look up |
| value | Output parameter for the cached value |
- Returns
- true if found in cache, false otherwise
Implements gs::AddrMapCacheBase< Key, Value >.
◆ get_hits()
template<typename Key, typename Value>
◆ get_misses()
template<typename Key, typename Value>
◆ put()
template<typename Key, typename Value>
| void gs::LRUCache< Key, Value >::put |
( |
const Key & | key, |
|
|
const Value & | value, |
|
|
uint64_t | size ) |
|
inlineoverridevirtual |
◆ reset_stats()
template<typename Key, typename Value>
The documentation for this class was generated from the following file: