Class caches::StoreCache#

template<typename K, typename V>
class StoreCache#

Public Functions

explicit StoreCache(size_t limit = 100)#
size_t size() const#
size_t space() const#
V &at(const K &key)#
bool contains(const K &key) const#
void store(const K &key, V &&value)#

Protected Attributes

size_t limit#
std::list<std::pair<K, V>> list#
std::unordered_map<K, Pairs<K, V>> map#