I'm really happy that @talkpython@fosstodon.org talked about diskcache https://pypi.org/project/diskcache/

in this episode: https://talkpython.fm/episodes/show/534/diskcache-your-secret-python-perf-weapon

I had an urgent 🔥need to add sqlite3 caching to a project last week and wrote my own little caching class. Soon this turned into too much work when clever cache invalidation was needed.

So I added diskcache as a secondary cache and have then refactored the code into using it and today could delete my own Quick and Dirty Caching Class.

If you need caching, have a look.