Caches 0.1.0
LRU/LFU/FIFO Caches library
|
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>
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. | |
Generic cache implementation.