Hacker News
Funkycache: A Python library to cache functions in SQLite
14 points by wmchen
ago
|
7 comments
Twirrim
|next
[-]
One of the more mature libraries in this space would be diskcache https://pypi.org/project/diskcache/ https://grantjenks.com/docs/diskcache/
Very easy to use, and performant. Uses an sqlite backend. I'll often drop it in to a project temporarily if I'm in a position of feeling my way through a problem just to cut down execution time for things that aren't relevant to what I'm working on.
ddorian43
|root
|parent
[-]
diskcache is not maintained (last commit was mine in 2024). You should use a fork like https://github.com/secondwindoss/diskcache-community/
enjoyyourlife
|previous
[-]
Should have done it the Anthropic way and stored it in arbitrary files in the /tmp folder