10 #ifndef META_NO_EVICT_CACHE_H_
11 #define META_NO_EVICT_CACHE_H_
31 template <
class Key,
class Value>
35 static_assert((std::is_integral<Key>::value
36 || std::is_base_of<util::numeric, Key>::value),
37 "Key for no_evict_cache must be a numeric type");
46 void insert(
const Key& key,
const Value& value);
64 std::unique_ptr<std::mutex>
mutables_{make_unique<std::mutex>()};
69 std::deque<util::optional<Value>>
values_;
73 #include "caching/no_evict_cache.tcc"