diskcache with zlib
Read OriginalThe article explores using the Python diskcache library with custom zlib compression for JSON data. It details creating a custom Disk class to compress cache entries, presents benchmark results on disk space savings, and discusses ideal use cases like caching LLM inputs/outputs. It also notes limitations and provides a link to the full notebook.
Comments
No comments yet
Be the first to share your thoughts!
Browser Extension
Get instant access to AllDevBlogs from your browser