userver: pytest_userver.plugins.caches.CacheControl Class Reference
Loading...
Searching...
No Matches
pytest_userver.plugins.caches.CacheControl Class Reference

Detailed Description

Definition at line 100 of file caches.py.

Public Member Functions

 __init__ (self, *, bool enabled, dict[Any, Any] context, dict[str, Callable[[...], Any]] fixtures, Set[str] caches_disabled)
 
tuple[dict[Any, Any], list[tuple[str, CacheControlAction]]] query_caches (self, list[str]|None cache_names)
 Query cache control handlers.
 
None commit_staged (self, dict[str, Any] staged)
 Apply recently committed state.
 

Protected Attributes

 _enabled = enabled
 
 _context = context
 
 _fixtures = fixtures
 
 _caches_disabled = caches_disabled
 

Constructor & Destructor Documentation

◆ __init__()

pytest_userver.plugins.caches.CacheControl.__init__ ( self,
* ,
bool enabled,
dict[Any, Any] context,
dict[str, Callable[[...], Any]] fixtures,
Set[str] caches_disabled )

Definition at line 101 of file caches.py.

Member Function Documentation

◆ commit_staged()

None pytest_userver.plugins.caches.CacheControl.commit_staged ( self,
dict[str, Any] staged )

Apply recently committed state.

Definition at line 140 of file caches.py.

◆ query_caches()

tuple[dict[Any, Any], list[tuple[str, CacheControlAction]]] pytest_userver.plugins.caches.CacheControl.query_caches ( self,
list[str] | None cache_names )

Query cache control handlers.

Returns pair (staged, [(cache_name, action), ...])

Definition at line 114 of file caches.py.

Member Data Documentation

◆ _caches_disabled

pytest_userver.plugins.caches.CacheControl._caches_disabled = caches_disabled
protected

Definition at line 112 of file caches.py.

◆ _context

pytest_userver.plugins.caches.CacheControl._context = context
protected

Definition at line 110 of file caches.py.

◆ _enabled

pytest_userver.plugins.caches.CacheControl._enabled = enabled
protected

Definition at line 109 of file caches.py.

◆ _fixtures

pytest_userver.plugins.caches.CacheControl._fixtures = fixtures
protected

Definition at line 111 of file caches.py.


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