userver: userver/cache/update_type.hpp File Reference
⚠️ This is the documentation for an old userver version. Click here to switch to the latest version.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
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>
+ Include dependency graph for update_type.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)