I have been searching a bit for a python module that offers a memoize decorator with the following capabilities:
- Stores cache on disk to be reused among subsequent program runs.
- Works for any pickle-able arguments, most importantly numpy arrays.
- (Bonus) checks whether arguments are mutated in function calls.
I found a few small code snippets for this task and could probably implement one myself, but I would prefer having an established package for this task. I also found incpy, but that does not seem to work with the standard python interpreter.
Ideally, I would like to have something like functools.lru_cache
plus cache storage on disk. Can someone point me to a suitable package for this?