Utilities for caching.
More...
|
enum class | FirstUpdateMode {
kRequired
,
kBestEffort
,
kSkip
} |
|
enum class | FirstUpdateType {
kFull
,
kIncremental
,
kIncrementalThenAsyncFull
} |
|
enum class | BackgroundUpdateMode {
kEnabled
,
kDisabled
} |
|
enum class | UpdateType {
kFull
,
kIncremental
} |
| Type of CachingComponentBase update. More...
|
|
enum class | AllowedUpdateTypes {
kFullAndIncremental
,
kOnlyFull
,
kOnlyIncremental
} |
| Update types allowed for a CachingComponentBase instance by static config. More...
|
|
|
FirstUpdateMode | Parse (const yaml_config::YamlConfig &config, formats::parse::To< FirstUpdateMode >) |
|
std::string_view | ToString (FirstUpdateMode) |
|
FirstUpdateType | Parse (const yaml_config::YamlConfig &config, formats::parse::To< FirstUpdateType >) |
|
std::string_view | ToString (FirstUpdateType) |
|
ConfigPatch | Parse (const formats::json::Value &value, formats::parse::To< ConfigPatch >) |
|
std::unordered_map< std::string, ConfigPatch > | ParseCacheConfigSet (const dynamic_config::DocsMap &docs_map) |
|
template<typename Key , typename Value , typename Hash , typename Equal > |
void | DumpMetric (utils::statistics::Writer &writer, const ExpirableLruCache< Key, Value, Hash, Equal > &cache) |
|
LruCacheConfig | Parse (const formats::json::Value &value, formats::parse::To< LruCacheConfig >) |
|
std::unordered_map< std::string, LruCacheConfig > | ParseLruCacheConfigSet (const dynamic_config::DocsMap &docs_map) |
|
std::optional< LruCacheConfig > | GetLruConfig (const dynamic_config::Snapshot &config, const std::string &cache_name) |
|
UpdateType | Parse (const formats::json::Value &value, formats::parse::To< UpdateType >) |
|
std::string_view | ToString (UpdateType update_type) |
|
AllowedUpdateTypes | Parse (const yaml_config::YamlConfig &value, formats::parse::To< AllowedUpdateTypes >) |
|
std::string_view | ToString (AllowedUpdateTypes allowed_update_types) |
|
◆ AllowedUpdateTypes
Update types allowed for a CachingComponentBase
instance by static config.
Definition at line 27 of file update_type.hpp.
◆ BackgroundUpdateMode
enum class cache::BackgroundUpdateMode |
|
strong |
◆ FirstUpdateMode
enum class cache::FirstUpdateMode |
|
strong |
◆ FirstUpdateType
enum class cache::FirstUpdateType |
|
strong |
◆ UpdateType
Type of CachingComponentBase
update.
Enumerator |
---|
kFull | requests all the items, starting from scratch
|
kIncremental | requests only newly updated items
|
Definition at line 16 of file update_type.hpp.
◆ DumpMetric()
template<typename Key , typename Value , typename Hash , typename Equal >
◆ kCacheConfigSet
◆ kLruCacheConfigSet