simple_cache_backend#
- class starlite.cache.simple_cache_backend.CacheObject#
Bases:
object
A container class for cache data.
- class starlite.cache.simple_cache_backend.SimpleCacheBackend#
Bases:
CacheBackendProtocol
In-memory cache backend.
- async get(key: str) Any #
Retrieve value from cache corresponding to the given key.
- Parameters:
key – name of cached value.
- Returns:
Cached value or
None
.