14 points | by wmchen 4 days ago ago
7 comments
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.
diskcache is not maintained (last commit was mine in 2024). You should use a fork like https://github.com/secondwindoss/diskcache-community/
Forbidden
Hugged to death. Looks like the cache isn't speeding up the site that much
https://pypi.org/project/funkycache/
https://web.archive.org/web/20261116204705/https://alexwlcha...
Should have done it the Anthropic way and stored it in arbitrary files in the /tmp folder
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.
diskcache is not maintained (last commit was mine in 2024). You should use a fork like https://github.com/secondwindoss/diskcache-community/
Forbidden
Hugged to death. Looks like the cache isn't speeding up the site that much
https://pypi.org/project/funkycache/
https://web.archive.org/web/20261116204705/https://alexwlcha...
Should have done it the Anthropic way and stored it in arbitrary files in the /tmp folder