17 #ifndef DICTIONARY_CACHE_HPP
18 #define DICTIONARY_CACHE_HPP
23 #include <unordered_map>
25 template <
typename key_t,
typename value_t>
30 void put(
const key_t& key,
const std::shared_ptr<value_t> value) {
38 std::shared_ptr<value_t>
get(
const key_t& key) {
57 std::unordered_map<key_t, std::shared_ptr<value_t>>
cache_items;
60 #endif // DICTIONARY_CACHE_HPP
void invalidateInvertedIndex() noexcept
std::unordered_map< key_t, std::shared_ptr< value_t > > cache_items
void put(const key_t &key, const std::shared_ptr< value_t > value)