Within the functools
pacakge in Python3
, there is a lru_cache()
decorator that will memo-ize your function calls.
Is there a way for me to dump out this cache into a file and then load the file back into in-memory later?
I couldn't find this feature in the functools documentation. What would be the recommended way to achieve the above requirements, preferably with the solution involving only Python?