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]¶ Get value for key, or
Noneif missing.- Return type
Optional[~VT]
-
last_set_ttl(key: KT) → Optional[float][source]¶ Return the last set TTL for key, or
Noneif missing.
-
setex(key: KT, timeout: float, value: VT) → None[source]¶ Set value & set timeout for key.
- Return type
None
-