[ trixie ]
[ sid ]
[ 源代码: web-cache ]
软件包:python3-web-cache(1.1.0-2)
Simple Python key-value storage backed up by sqlite3 database
Python module for simple key-value storage backed up by sqlite3 database. The typical use case is a URL to HTTP data cache, but it can also be used for non web ressources.
Features:
* Simple dict interface allows natural usage (if key in cache, value
= cache[key], etc.)* Optional Zlib (deflate), BZIP2, LZMA or ZSTD (Zstandard)
compression, with configurable compression level* FIFO or LRU cache eviction strategies * Optional thread safe interface to work around Python Sqlite3 'same
thread' limitation* Provides cache hit rate statistics