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

Detailed Description

Enums representing periodic update types for CachingComponentBase

Definition in file update_type.hpp.

Go to the source code of this file.

#include <string_view>
#include <userver/formats/json_fwd.hpp>
#include <userver/yaml_config/fwd.hpp>
+ This graph shows which files directly or indirectly include this file:

Namespaces

namespace  cache
 Utilities for caching.
 

Enumerations

enum class  cache::UpdateType {
  cache::kFull ,
  cache::kIncremental
}
 Type of CachingComponentBase update. More...
 
enum class  cache::AllowedUpdateTypes {
  kFullAndIncremental ,
  kOnlyFull ,
  kOnlyIncremental
}
 Update types allowed for a CachingComponentBase instance by static config. More...
 

Functions

UpdateType cache::Parse (const formats::json::Value &value, formats::parse::To< UpdateType >)
 
std::string_view cache::ToString (UpdateType update_type)
 
AllowedUpdateTypes cache::Parse (const yaml_config::YamlConfig &value, formats::parse::To< AllowedUpdateTypes >)
 
std::string_view cache::ToString (AllowedUpdateTypes allowed_update_types)