Definition at line 401 of file expirable_lru_cache.hpp.
Public Types | |
| using | Cache = ExpirableLruCache<Key, Value, Hash, Equal> |
| using | ReadMode = typename Cache::ReadMode |
Public Member Functions | |
| LruCacheWrapper (std::shared_ptr< Cache > cache, typename Cache::UpdateValueFunc update_func) | |
| Value | Get (const Key &key, ReadMode read_mode=ReadMode::kUseCache) |
| Get cached value or evaluates if "key" is missing in cache. | |
| std::optional< Value > | GetOptional (const Key &key) |
| Get cached value or "nullopt" if "key" is missing in cache. | |
| void | InvalidateByKey (const Key &key) |
| template<typename Predicate> | |
| void | InvalidateByKeyIf (const Key &key, Predicate pred) |
| void | UpdateInBackground (const Key &key) |
| Update cached value in background. | |
| std::shared_ptr< Cache > | GetCache () |
| Get raw cache. For internal use. | |
| using cache::LruCacheWrapper< Key, Value, Hash, Equal >::Cache = ExpirableLruCache<Key, Value, Hash, Equal> |
Definition at line 403 of file expirable_lru_cache.hpp.
| using cache::LruCacheWrapper< Key, Value, Hash, Equal >::ReadMode = typename Cache::ReadMode |
Definition at line 404 of file expirable_lru_cache.hpp.
|
inline |
Definition at line 406 of file expirable_lru_cache.hpp.
|
inline |
Get cached value or evaluates if "key" is missing in cache.
Definition at line 410 of file expirable_lru_cache.hpp.
|
inline |
Get raw cache. For internal use.
Definition at line 428 of file expirable_lru_cache.hpp.
|
inline |
Get cached value or "nullopt" if "key" is missing in cache.
Definition at line 415 of file expirable_lru_cache.hpp.
|
inline |
Definition at line 417 of file expirable_lru_cache.hpp.
|
inline |
Definition at line 420 of file expirable_lru_cache.hpp.
|
inline |
Update cached value in background.
Definition at line 425 of file expirable_lru_cache.hpp.