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

#include <userver/testsuite/cache_control.hpp>

Detailed Description

RAII helper for testsuite registration.

Removes the associated resetter automatically on destruction.

Prefer RegisterCacheScope so that the resetter is registered after the component constructor and unregistered just before the destructor. Otherwise store the registration as a member after the rest of the component's fields.

See also
testsuite::CacheControl

Definition at line 166 of file cache_control.hpp.

Public Member Functions

 CacheResetRegistration (CacheResetRegistration &&) noexcept
CacheResetRegistration & operator= (CacheResetRegistration &&) noexcept
void Unregister () noexcept

Member Function Documentation

◆ Unregister()

void testsuite::CacheResetRegistration::Unregister ( )
noexcept

Unregister the cache component explicitly. Unregister is called in the destructor automatically.


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