#313: Persisted Cache for Function Calls
It is already 2 years since I wrote about built-in functools to cache calls to your Python functions. While this is still a great approach, it has one downside: when we restart our tool, the cache is empty and we need to do the computational work once more.
When it comes to persisting our cache, we have multiple options. A simple little tool that pops up in a lot of post I read in the last weeks is DiskCache. The last update of this library is from August 2023, what leads to questions if this library is still maintained. We should keep an eye on that but still give it a try. Let us see how we can use this tool for a persisted cache.