project_config.cache module

Persistent cache.

class project_config.cache.Cache[source]

Bases: object

Wrapper for a unique diskcache.Cache instance.

_cache = <diskcache.core.Cache object>
_expiration_time = 30
static clean() bool[source]

Remove the cache directory.

classmethod get(*args: Any, **kwargs: Any) Any[source]
static get_directory() str[source]

Return the cache directory.

classmethod set(*args: Any, **kwargs: Any) Any[source]
classmethod set_expiration_time(expiration_time: Optional[float] = None) None[source]

Set the expiration time for the cache.

Parameters

expiration_time (float) – Time in seconds.

project_config.cache._directory() str[source]