python-diskcache icon indicating copy to clipboard operation
python-diskcache copied to clipboard

Python disk-backed cache (Django-compatible). Faster than Redis and Memcached. Pure-Python.

Results 79 python-diskcache issues
Sort by recently updated
recently updated
newest added

Hi, With missing in-memory multiprocess cache in Python, the closest thing seems sqlite. Any best practices for in-memory shared cache between multiple processes? Some ideas: - `sqlite_synchronous=0` - `sqlite_mmap_size=0` -...

When a fork occurs while the sqlite db is mid-transaction, so sqlite transaction lock remains locked forever in the foree, deadlocking it. This patch protects against this case using os.register_at_fork().

Hello, With Python 3.11, I get "unable to open database file" quite quickly and "easily". It turns out that my app has way too many "cache.db" opened. This looks like...

can take a reference here: https://plyvel.readthedocs.io/en/latest/user.html#iterators samples like: ``` python for key, value in db.iterator(start=b'key-2', stop=b'key-4'): for key, value in db.iterator(start=b'key-3'): for key, value in db.iterator(start=b'key-2', include_start=False, stop=b'key-5', include_stop=True): for...

Hi, Here is a PR to fix a deadlock in python-diskache when forking with the transaction lock locked: https://github.com/grantjenks/python-diskcache/pull/299. When a fork occurs while the sqlite db is mid-transaction, the...

I'm working on a project wherein I have two caches: one for celery tasks and one for a file index per root path. My question is how best to set...

I've updated the query-only branch. https://github.com/grantjenks/python-diskcache/issues/113

Hi DiskCache Team, We have recently run into an issue where we have two threads attempting to write and read the same item from the cache which is resulting in...

I tried using a Deque like this: `Deque.fromcache(Cache(eviction_policy="none", disk=JSONDisk))` and while I'm not yet entirely sure if that's a useful thing (I guess some of the serialization caveats also apply...

Since the cache is a dictionary liked key value store, can we add a method like ``iteritems`` or ``iterkeyandtags``? I think it should be more performant than: ``` for key...