view.cache¶
Utilities for caching responses from views.
Functions
|
|
|
|
|
Decorator to cache the result from a given view in-memory. |
|
|
|
Classes
|
Base class for caches. |
|
Wrapper class for a cache stored in memory. |
- class InMemoryCache(callable: Callable[P, T], reset_frequency: float)¶
Bases:
BaseCache[P,T]Wrapper class for a cache stored in memory.
- callable: Callable[P, T]¶
- in_memory_cache(reset_frequency: int | None = None) Callable[[Callable[P, T]], InMemoryCache[P, T]]¶
Decorator to cache the result from a given view in-memory.