API Reference¶
Caches¶
- class cachetout.Cache(name: str, app_name: str | None = None, backend: Backend | None = None)¶
A persistent cache that stores values in a named backend.
Functions¶
- cachetout.cache(*args, **kwargs)¶
Cache a function’s return values.
Can be used bare (@cache) or with arguments (@cache(name=…), app_name=…, backend=…, expires_in=…). Values are looked up by the function’s arguments and decoded as the function’s return annotation.