diskcache
Diskcache is an open-source Python library that provides a persistent, on-disk cache for Python objects. It offers a dictionary-like interface that stores key–value pairs in a directory on disk, allowing cached data to survive process restarts and to scale beyond available memory.
The library exposes two main interfaces. Cache is designed for single-threaded or single-process usage; FanoutCache is
Key features include: persistence on disk, optional time-to-live expiration for items, optional total size limit with
Uses cases include caching expensive computations, I/O-bound data retrieval, and sharing cached data across processes in
History and ecosystem: diskcache is an open-source project in the Python ecosystem, distributed via PyPI and