Caches 0.1.0
LRU/LFU/FIFO Caches library
Loading...
Searching...
No Matches
Classes | Typedefs
cache.hpp File Reference

Generic cache implementation. More...

#include "cache_policy.hpp"
#include <algorithm>
#include <cstddef>
#include <functional>
#include <limits>
#include <memory>
#include <mutex>
#include <stdexcept>
#include <unordered_map>
Include dependency graph for cache.hpp:

Go to the source code of this file.

Classes

class  caches::fixed_sized_cache< Key, Value, Policy, HashMap >
 Fixed sized cache that can be used with different policy types (e.g. LRU, FIFO, LFU) More...
 

Typedefs

template<typename V >
using caches::WrappedValue = std::shared_ptr< V >
 Wrapper over the given value type to allow safe returning of a value from the cache.
 

Detailed Description

Generic cache implementation.