la bibliothèque #diskcache est intéressante pour plusieurs raisons (https://github.com/grantjenks/python-diskcache) :
- écrite en pur #Python
- persistance du cache sur disque avec #SQLite
- fonctionnalités avancées, comme locking (cf. https://grantjenks.com/docs/diskcache/api.html#diskcache.Lock)

Et bien d'autres choses.

GitHub - grantjenks/python-diskcache: Python disk-backed cache (Django-compatible). Faster than Redis and Memcached. Pure-Python.

Python disk-backed cache (Django-compatible). Faster than Redis and Memcached. Pure-Python. - grantjenks/python-diskcache

GitHub

I've only just discovered #DiskCache memoization for #Python. It's a nice little persistent #cache that lets you re-run a Python script without needing to re-run things you've already calculated. Kind of like a super lightweight version of a workflow manager.

Does anyone know of any other Python libraries in this space of persistent caching?

I'm so excited; it took me roughly 5 years to get to a working solution, struggling through #redis, #nameko, #diskcache (and a slew of others) in my #python #microservices environment. Solved using a centralized #postgres database, which automatically triggers removal of items which depend on some data in the mutated row along with dependency registration in the application layer.