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

Detailed Description

Cache component configuration, update modes and dynamic config patches.

Definition in file cache_config.hpp.

Go to the source code of this file.

#include <chrono>
#include <optional>
#include <stdexcept>
#include <string>
#include <unordered_map>
#include <userver/cache/update_type.hpp>
#include <userver/dynamic_config/snapshot.hpp>
#include <userver/formats/json_fwd.hpp>
#include <userver/yaml_config/fwd.hpp>

Classes

class  cache::ConfigError
 
struct  cache::ConfigPatch
 
struct  cache::Config
 

Namespaces

namespace  dump
 Dumping of cache-like components.
 
namespace  cache
 LRU/LRU-set caches and related utilities.
 

Enumerations

enum class  FirstUpdateMode {
  kRequired ,
  kBestEffort ,
  kSkip
}
 
enum class  FirstUpdateType {
  kFull ,
  kIncremental ,
  kIncrementalThenAsyncFull
}
 

Functions

FirstUpdateMode cache::Parse (const yaml_config::YamlConfig &config, formats::parse::To< FirstUpdateMode >)
 
std::string_view cache::ToString (FirstUpdateMode)
 
FirstUpdateType cache::Parse (const yaml_config::YamlConfig &config, formats::parse::To< FirstUpdateType >)
 
std::string_view cache::ToString (FirstUpdateType)
 
ConfigPatch cache::Parse (const formats::json::Value &value, formats::parse::To< ConfigPatch >)
 

Variables

const dynamic_config::Key< std::unordered_map< std::string, ConfigPatch > > cache::kCacheConfigSet