Vincent Warmerdam 12/16/2025

diskcache with zlib

Read Original

The 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.

diskcache with zlib

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser