userver: userver/cache/lru_cache_config.hpp File Reference
Loading...
Searching...
No Matches
lru_cache_config.hpp File Reference

Detailed Description

LRU cache configuration types and dynamic config integration.

Definition in file lru_cache_config.hpp.

Go to the source code of this file.

#include <chrono>
#include <cstddef>
#include <optional>
#include <unordered_map>
#include <userver/components/component_fwd.hpp>
#include <userver/dynamic_config/snapshot.hpp>
#include <userver/formats/json_fwd.hpp>
#include <userver/yaml_config/fwd.hpp>
+ This graph shows which files directly or indirectly include this file:

Classes

struct  cache::LruCacheConfig
 
struct  cache::LruCacheConfigStatic
 

Namespaces

namespace  cache
 LRU/LRU-set caches and related utilities.
 

Enumerations

enum class  BackgroundUpdateMode {
  kEnabled ,
  kDisabled
}
 

Functions

LruCacheConfig cache::Parse (const formats::json::Value &value, formats::parse::To< LruCacheConfig >)
 
std::optional< LruCacheConfigcache::GetLruConfig (const dynamic_config::Snapshot &config, const std::string &cache_name)
 

Variables

const dynamic_config::Key< std::unordered_map< std::string, LruCacheConfig > > cache::kLruCacheConfigSet