joblib.Memory I can cache the results of some function, but I wonder if there is an efficient way to figure out the list of arguments for which there is a cached value.
For example, suppose that the function
slow_func was computed and cached for some values of
x, can I find out for which values I have cache?
from joblib import Memory mem = Memory(location='cache') @mem.cache def slow_func(x): return x
Source: Python Questions