userver: userver/testsuite/cache_control.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
cache_control.hpp File Reference

Detailed Description

Testsuite interface for caches and cache-like components.

Definition in file cache_control.hpp.

Go to the source code of this file.

#include <functional>
#include <memory>
#include <string>
#include <type_traits>
#include <unordered_set>
#include <userver/cache/update_type.hpp>
#include <userver/components/component_fwd.hpp>
#include <userver/components/state.hpp>
#include <userver/utils/assert.hpp>
+ Include dependency graph for cache_control.hpp:
+ This graph shows which files directly or indirectly include this file:

Classes

class  testsuite::CacheControl
 Testsuite interface for caches and cache-like components. More...
 
class  testsuite::CacheResetRegistration
 RAII helper for testsuite registration. Must be kept alive to keep supporting cache resetting. More...
 

Namespaces

namespace  cache
 Utilities for caching.
 
namespace  components
 Contains functions and types to start a userver based service/tool.
 
namespace  testsuite
 Testsuite integration.
 

Functions

CacheControltestsuite::FindCacheControl (const components::ComponentContext &context)
 
template<typename Component >
CacheResetRegistration testsuite::RegisterCache (const components::ComponentConfig &config, const components::ComponentContext &context, Component *self, void(Component::*reset_method)())
 The method for registering a cache from component constructor. The returned handle must be kept alive to keep supporting cache resetting.