faust.web.cache.backends.base

Cache backend - base implementation.

class faust.web.cache.backends.base.CacheBackend(app: faust.types.app.AppT, url: Union[yarl.URL, str] = 'memory://', **kwargs) → None[source]

Backend for cache operations.

logger = <Logger faust.web.cache.backends.base (WARNING)>
Unavailable

alias of faust.web.cache.exceptions.CacheUnavailable

operational_errors = ()
invalidating_errors = ()
irrecoverable_errors = ()
coroutine delete(self, key: str) → None[source]
Return type:None
coroutine get(self, key: str) → Optional[bytes][source]
Return type:Optional[bytes]
coroutine set(self, key: str, value: bytes, timeout: float) → None[source]
Return type:None