userver: testsuite::CacheControl Class Reference
Loading...
Searching...
No Matches
testsuite::CacheControl Class Referencefinal

Periodically updated caches control interface for testsuite. More...

#include <userver/testsuite/cache_control.hpp>

Public Types

enum class  PeriodicUpdatesMode {
  kDefault ,
  kEnabled ,
  kDisabled
}
 

Public Member Functions

 CacheControl (PeriodicUpdatesMode)
 
bool IsPeriodicUpdateEnabled (const cache::Config &cache_config, const std::string &cache_name) const
 Whether the cache with specified config should be updated periodically.
 
void InvalidateAllCaches (cache::UpdateType update_type)
 
void InvalidateCaches (cache::UpdateType update_type, std::unordered_set< std::string > names)
 

Friends

class CacheInvalidatorHolder
 

Detailed Description

Periodically updated caches control interface for testsuite.

All methods are coro-safe.

Definition at line 27 of file cache_control.hpp.

Member Enumeration Documentation

◆ PeriodicUpdatesMode

enum class testsuite::CacheControl::PeriodicUpdatesMode
strong

Definition at line 29 of file cache_control.hpp.

Friends And Related Symbol Documentation

◆ CacheInvalidatorHolder

friend class CacheInvalidatorHolder
friend

Definition at line 43 of file cache_control.hpp.


The documentation for this class was generated from the following file: