python-diskcache
python-diskcache copied to clipboard
Python disk-backed cache (Django-compatible). Faster than Redis and Memcached. Pure-Python.
Just making a note that it's not compatible with it. After a quick check, the reason is that it's using `connection.execute()` instead of `connection.cursor().execute()`. https://opentelemetry-python-contrib.readthedocs.io/en/latest/instrumentation/sqlite3/sqlite3.html
For observability reasons, we'd like to log the age of cached elements when we use them. I was thinking of wrapping DiskCache so that we put the store time into...
Hi, this is bit of a niche issue and I apologize in advance 😅. I *do* think there's some general merit to improving this though. Background: We use diskcache on...
Hello, I have encountered an **sqlite3.DatabaseError: database disk image is malformed** error during the execution of my scripts. After reading the documentation, I found that diskcache performs poorly with Network...
I'm seeing an exception when running diskcache with libsqlite 3.49.1. I don't see the same exception with libsqlite 3.48.0. ``` lib\site-packages\diskcache\core.py:808: in set self._row_insert(db_key, raw, now, columns) _ _ _...
Hi I need some clarification on how the automatic expiration mechanism works. Specifically, I would like to understand whether there is an integrated periodic control thread that removes expired items...
I have a number of keys organized by tags and would like to get a list of keys with a certain tag. However, I cannot find a straightforward way to...
I am using tags to manage and evict keys based on their tags. However, I noticed that `cache.incr` does not accept a tag parameter, resulting in all keys created by...
Imagine N distinct objects in a pool. When, for example object#3 is removed, it is immediately replaced with another copy of object#3. Once removed, an object is not returned to...
Hi, for various reasons, I would like to dump the current content of the cache (that contains the output of some expensive operations) and import it somewhere else. Is it...