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

Detailed Description

Definition at line 99 of file caches.py.

Public Member Functions

 __init__ (self, *bool enabled, typing.Dict context, typing.List[str] fixtures, typing.Set[str] caches_disabled)
 
typing.Tuple[ typing.Dict, typing.List[typing.Tuple[str, CacheControlAction]],] query_caches (self, typing.Optional[typing.List[str]] cache_names)
 Query cache control handlers.
 
None commit_staged (self, typing.Dict[str, typing.Any] staged)
 Apply recently commited state.
 

Protected Attributes

 _enabled
 
 _context
 
 _fixtures
 
 _caches_disabled
 

Constructor & Destructor Documentation

◆ __init__()

pytest_userver.plugins.caches.CacheControl.__init__ ( self,
*bool enabled,
typing.Dict context,
typing.List[str] fixtures,
typing.Set[str] caches_disabled )

Definition at line 100 of file caches.py.

Member Function Documentation

◆ commit_staged()

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

Apply recently commited state.

Definition at line 140 of file caches.py.

◆ query_caches()

typing.Tuple[ typing.Dict, typing.List[typing.Tuple[str, CacheControlAction]], ] pytest_userver.plugins.caches.CacheControl.query_caches ( self,
typing.Optional[typing.List[str]] cache_names )

Query cache control handlers.

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

Definition at line 113 of file caches.py.

Member Data Documentation

◆ _caches_disabled

pytest_userver.plugins.caches.CacheControl._caches_disabled
protected

Definition at line 111 of file caches.py.

◆ _context

pytest_userver.plugins.caches.CacheControl._context
protected

Definition at line 109 of file caches.py.

◆ _enabled

pytest_userver.plugins.caches.CacheControl._enabled
protected

Definition at line 108 of file caches.py.

◆ _fixtures

pytest_userver.plugins.caches.CacheControl._fixtures
protected

Definition at line 110 of file caches.py.


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