Definition at line 96 of file caches.py.
|
| | __init__ (self, *, bool enabled, typing.Dict context, typing.Dict[str, typing.Callable] 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 committed state.
|
| |
◆ __init__()
| pytest_userver.plugins.caches.CacheControl.__init__ |
( |
| self, |
|
|
* | , |
|
|
bool | enabled, |
|
|
typing.Dict | context, |
|
|
typing.Dict[str, typing.Callable] | fixtures, |
|
|
typing.Set[str] | caches_disabled ) |
◆ commit_staged()
| None pytest_userver.plugins.caches.CacheControl.commit_staged |
( |
| self, |
|
|
typing.Dict[str, typing.Any] | staged ) |
Apply recently committed state.
Definition at line 139 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 110 of file caches.py.
◆ _caches_disabled
| pytest_userver.plugins.caches.CacheControl._caches_disabled = caches_disabled |
|
protected |
◆ _context
| pytest_userver.plugins.caches.CacheControl._context = context |
|
protected |
◆ _enabled
| pytest_userver.plugins.caches.CacheControl._enabled = enabled |
|
protected |
◆ _fixtures
| pytest_userver.plugins.caches.CacheControl._fixtures = fixtures |
|
protected |
The documentation for this class was generated from the following file:
- /data/code/userver/testsuite/pytest_plugins/pytest_userver/plugins/caches.py