{"categories":[{"label":"Database","url":"https://skillfed.io/packages/category/database"}],"enrichment":{"capability":"Wraps cachetools cache implementations with disk persistence, allowing cached data to survive across program restarts while maintaining the same cache interface.","skillfed_tags":["caching","persistence","file-backed"],"use_cases":["Cache expensive function results across program runs without setting up a database or external cache service.","Decorate async methods with persistent caching using the async decorator support.","Build a simple memoization layer for CLI tools or batch scripts that benefit from remembering past computations.","Persist LRU or TTL cache state to disk for recovery after crashes or restarts."],"what_it_does":"shelved-cache adds disk persistence to cachetools cache objects, allowing you to wrap any cachetools cache (LRU, TTL, etc.) so that cached entries are automatically written to a file and survive program restarts. You create a PersistentCache instance around a cachetools cache class, then use it exactly like the underlying cache\u2014reading and writing entries works the same way, but data persists to disk via Python's shelve module.\n\nThe package also provides async-aware decorators (cachedasyncmethod, cachedfunction) that work with both synchronous and asynchronous functions, and a utility function (autotuple_hashkey) to make list arguments hashable for caching. It's a thin layer on top of cachetools, designed for applications that need simple file-backed caching without external dependencies like Redis.","worth_installing":"Yes, if you need simple disk-backed caching and don't want external dependencies. The low install friction, permissive license, and straightforward API make it a reasonable choice for small to medium projects. However, be aware that the package is aging (last release 242 days ago) and has a known issue on Windows with Python 3.13+; verify that issue doesn't affect your platform before committing to it for production use."},"id":"shelved-cache","links":{"html":"https://skillfed.io/packages/shelved-cache","md":"https://skillfed.io/packages/shelved-cache.md","pypi":"https://pypi.org/project/shelved-cache/"},"maintenance":{"status":"aging"},"meta":{"latest_release":"2025-12-15","license_spdx":null,"license_treatment":"permissive","name":"shelved-cache","python_support":"supports_current","summary":"Persistent cache for Python cachetools."},"popularity":{"monthly_downloads":4810375,"position":2222,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"0.5.0"}
