{"categories":[{"label":"Database","url":"https://skillfed.io/packages/category/database/2"}],"enrichment":{"capability":"Async cache framework with decorator and direct API support for in-memory, Redis, and DiskCache backends, including TTL management, cache invalidation, and optional client-side caching.","skillfed_tags":["async-first","multi-backend","decorator-api"],"use_cases":["Decorate long-running async functions to cache results with automatic TTL expiry and key templating.","Set up multi-tier caching (in-memory + Redis) by prefix to balance speed and shared state.","Cache database query results or API responses in async web frameworks like FastAPI.","Implement cache invalidation by tags or time-based strategies to keep stale data out.","Use client-side caching with Redis to reduce round-trips and improve latency in high-throughput services."],"what_it_does":"Cashews is an async-first caching library that wraps multiple storage backends (in-memory, Redis, DiskCache) under a unified decorator and function-call API. It lets you cache async function results with configurable TTL, custom key templates, and cache invalidation strategies\u2014useful for reducing load on slow operations or external services in async applications.\n\nThe library emphasizes ease of use through decorators and supports advanced techniques like client-side caching (claimed to be faster than simple Redis caching), bloom filters, compression, and transactional modes. You can mix backends by prefix, serialize complex objects with pickle or dill, and monitor cache hits/misses. It has no required runtime dependencies, making installation lightweight; optional extras unlock Redis, DiskCache, and serialization features.","worth_installing":"Yes. Cashews is production-ready (stable classifier, active maintenance, no known vulnerabilities), has low install friction, and offers a clean async API with flexible backends. Choose it if you need decorator-based caching in async code and want to avoid vendor lock-in to a single backend. The optional extras (Redis, DiskCache) let you start simple and scale later."},"id":"cashews","links":{"html":"https://skillfed.io/packages/cashews","md":"https://skillfed.io/packages/cashews.md","pypi":"https://pypi.org/project/cashews/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-03-02","license_spdx":null,"license_treatment":"permissive","name":"cashews","python_support":"supports_current","summary":"cache tools with async power"},"popularity":{"monthly_downloads":755176,"position":5141,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"7.5.0"}
