faust.web.cache.backends.memory

In-memory cache backend.

class faust.web.cache.backends.memory.CacheStorage[source]

In-memory storage for cache.

get(key: KT) → Optional[VT][source]
Return type:Optional[~VT]
last_set_ttl(key: KT) → Optional[float][source]
Return type:Optional[float]
expire(key: KT) → None[source]
Return type:None
set(key: KT, value: VT) → None[source]
Return type:None
setex(key: KT, timeout: float, value: VT) → None[source]
Return type:None
ttl(key: KT) → Optional[float][source]
Return type:Optional[float]
delete(key: KT) → None[source]
Return type:None
clear() → None[source]
Return type:None
class faust.web.cache.backends.memory.CacheBackend(app: faust.types.app.AppT, url: Union[yarl.URL, str] = 'memory://', **kwargs) → None[source]

In-memory backend for cache operations.

on_init() → None[source]
Return type:None