python-diskcache
python-diskcache copied to clipboard
Python disk-backed cache (Django-compatible). Faster than Redis and Memcached. Pure-Python.
I tried to change JSONDisk's compression level, but it seems that setting disk parameters at cache initialization doesn't work. To test this, I wrote a script that reuses the JSONDisk...
@grantjenks This is to move cache hit/miss outside of the get transaction. A use case is to override it, make it async, and update the hit/miss counters in the db...
Long time work in progress. Opening the PR to view the diffs and track the branch ...
I use diskcache and save the cache directory to a share drive. Later on, I use diskcache again to pull / update the data. The problem I recently hit was...
I got this error when setting up my diskcache: ``` File "C:\Users\csm10495\AppData\Local\Jenkins\.jenkins\workspace\Update Lump Status\infra\Lib\site-packages\diskcache\core.py", line 2441, in reset sql('PRAGMA %s = %s' % (pragma, value)).fetchall() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ sqlite3.OperationalError: near "-": syntax...
I'm looking for a way to cache the output of processing a file, but I want to use the hash of the file, not the path. This code doesn't work,...
https://grantjenks.com/docs/diskcache/ 
I would like to add typing support to this library. However, as multiple changes will be required to support this, I wanted to verify that it is something that is...
Running: ```python import os import diskcache a = diskcache.Cache(directory='/tmp/cache') b = diskcache.Cache(directory='/tmp/cache') os.fork() a.get('key') ``` on a MacOS machine, fails with: ```python Traceback (most recent call last): File "/Users/distiller/project/fork.py", line...