Base class for all caches polling mongo collection
Definition in file base_mongo_cache.hpp.
Go to the source code of this file.
#include <chrono>
#include <fmt/format.h>
#include <userver/cache/cache_statistics.hpp>
#include <userver/cache/caching_component_base.hpp>
#include <userver/cache/mongo_cache_type_traits.hpp>
#include <userver/components/component_context.hpp>
#include <userver/formats/bson/document.hpp>
#include <userver/formats/bson/inline.hpp>
#include <userver/formats/bson/value_builder.hpp>
#include <userver/storages/mongo/collection.hpp>
#include <userver/storages/mongo/operations.hpp>
#include <userver/storages/mongo/options.hpp>
#include <userver/tracing/span.hpp>
#include <userver/utils/cpu_relax.hpp>
#include <userver/yaml_config/merge_schemas.hpp>
Classes | |
class | components::MongoCache< MongoCacheTraits > |
Base class for all caches polling mongo collection More... | |
Namespaces | |
namespace | components |
Contains functions and types to start a userver based service/tool. | |
Variables | |
const std::string | components::kFetchAndParseStage = "fetch_and_parse" |
constexpr std::chrono::milliseconds | components::kCpuRelaxThreshold {10} |
constexpr std::chrono::milliseconds | components::kCpuRelaxInterval {2} |
template<class MongoCacheTraits > | |
constexpr bool | components::kHasValidate< MongoCache< MongoCacheTraits > > = true |