#include <userver/testsuite/cache_control.hpp>
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.
Definition at line 166 of file cache_control.hpp.
Public Member Functions | |
| CacheResetRegistration (CacheResetRegistration &&) noexcept | |
| CacheResetRegistration & | operator= (CacheResetRegistration &&) noexcept |
| void | Unregister () noexcept |
|
noexcept |
Unregister the cache component explicitly. Unregister is called in the destructor automatically.