You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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, but it would be more or less what I would need, is it possible to do anything similar with this library?
Activity
egeres commentedon Aug 15, 2024
I guess I could just do:
phi-friday commentedon Aug 18, 2024
Override the
__cache_key__attribute of the function.see more:
python-diskcache/diskcache/core.py
Lines 1864 to 1888 in ebfa37c