Store the cache to a file functools.lru_cache in Python >= 3.2
Store the cache to a file functools.lru_cache in Python >= 3.2 Question: I’m using @functools.lru_cache in Python 3.3. I would like to save the cache to a file, in order to restore it when the program will be restarted. How could I do? Edit 1 Possible solution: We need to pickle any sort of callable …