DjangoCache
A Django cache backend on a diskcache-oxide Cache (or a FanoutCache with OPTIONS['shards']).
Usage
DjangoCache(
location,
params,
)'BACKEND': 'diskcache_oxide.DjangoCache'. OPTIONS takes Cache’s keyword names; the defaults are a 1.0 s lock wait (OPTIONS['timeout']) and pickle=True. Errors raise (Timeout for a held lock) unless OPTIONS['durable'] is set, which drops single-key writes instead. Every instance and alias on a directory shares one handle per process, and close() does nothing. See the Django cache backend guide for the recommended setup.
Parameters
location: str | os.PathLike[str]-
The cache directory, Django’s
LOCATION. Required. params: dict[str, Any]- The rest of the alias’s settings, as Django passes them.
Raises
ImproperlyConfigured-
No
LOCATION, an unknown or refused option, another alias on the same directory with differentOPTIONS, or adurable=Truealias that the cache or cached_db session engine stores sessions in.