template<typename Key, typename Value, typename Hash>
class VdfLRUCache< Key, Value, Hash >
A simple cache with a fixed capacity and a least-recently-used eviction policy.
Definition at line 27 of file lruCache.h.
template<typename Key, typename Value, typename Hash >
Performs a lookup into the cache and returns true if the cache contains an entry for the given key. If the cache does not contain and entry for key, a new entry will be constructed as long as the cache is below capacity. If the cache has reached capacity an existing entry will be repurposed for key. In this case, value will point at the evicted entry. and the client will be resonpsible for resetting value. In all cases, value will always point at a valid instance of Value.
Definition at line 81 of file lruCache.h.