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

Due to the standard library's limitation to serialize many data types using `pickle`, I unfortunately cannot currently use `python-diskcache` in my research. [Dill](https://github.com/uqfoundation/dill) is a python library which expands python's...

Add support for Flask Caching. Details at https://flask-caching.readthedocs.io/en/latest/

There is a Disk tutorial in the documentation at this address: https://grantjenks.com/docs/diskcache/tutorial.html#disk It seems obsolete, as running the code errors with: ```log ./tests/test_storage.py::test_dump_diskcache_zstd Failed: [undefined]TypeError: JSONDisk.store() got an unexpected keyword...

Thanks for the effort that has been put into this library, it's clear a lot of attention to detail is involved. On my very first attempt to use this, I...

```python @cache.memoize(ignore={'session'}) def get(entity_id: str, session): session.get(entity_id, timeout=..., ...) session = db.Session(...) # diskcache tries to serialize session and fails get(1, session) ``` `@cache.memoize(ignore={'session', 1})` works fine. But it's a...

we can not use `memoize_stampede` on async functions right now. This feature would be appreciated. There is a feature request for moize: https://github.com/grantjenks/python-diskcache/pull/196/commits/3a6ae4bd282ca98bc967c4868da9f1a28aa1603c. But `memoize_stampede` seems to be a bit...

I think it should be relatively easy to add async support for the memoize decorator, something equivalent to (but probably with some changes for compatibility reasons): ```python ... if not...

Hi! use case: a web API. The API must return values as soon as possible, and values should be updated if some time is passed from last call. So the...

Apologies if I've missed an obvious link but I couldn't find anything that tells me what's changed with each new release. In particular, the jump from 4.x to 5.x suggests...