{"categories":[{"label":"Database","url":"https://skillfed.io/packages/category/database"}],"enrichment":{"capability":"CacheLib provides a unified API for interacting with multiple cache backends\u2014Redis, Memcached, MongoDB, DynamoDB, file system, in-memory, uWSGI, and Valkey\u2014so you can swap implementations without changing application code.","skillfed_tags":["cache-abstraction","multi-backend","pallets-ecosystem"],"use_cases":["Swap cache backends in a Flask or web application without changing application logic.","Implement a local development cache (SimpleCache) that scales to Redis in production.","Cache expensive database queries or API responses using a consistent interface.","Store session data or temporary state across multiple processes using a shared backend.","Reduce coupling between application code and a specific caching technology."],"what_it_does":"CacheLib is a cache abstraction library that presents a single, consistent API for seven different cache backends. Instead of writing code tied to Redis or Memcached directly, you instantiate a cache object (RedisCache, MemcachedCache, SimpleCache, etc.) and use the same get/set/delete methods regardless of the backend. It was extracted from Werkzeug and is maintained by the Pallets Ecosystem.\n\nThe library supports both local caching (SimpleCache for single-process in-memory, FileSystemCache for disk) and distributed backends (Redis, Memcached, MongoDB, DynamoDB, Valkey, uWSGI). This makes it useful for applications that need to switch cache strategies without refactoring\u2014for example, using SimpleCache in development and RedisCache in production.","worth_installing":"Yes. CacheLib is actively maintained, has no security vulnerabilities, zero runtime dependencies, and low install friction. It solves a real problem\u2014cache backend abstraction\u2014and is part of the trusted Pallets Ecosystem. Install it if you need flexible caching or plan to support multiple backends."},"id":"cachelib","links":{"html":"https://skillfed.io/packages/cachelib","md":"https://skillfed.io/packages/cachelib.md","pypi":"https://pypi.org/project/cachelib/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-08-08","license_spdx":"BSD-3-Clause","license_treatment":"permissive","name":"cachelib","python_support":"supports_current","summary":"A collection of cache libraries in the same API interface."},"popularity":{"monthly_downloads":19272987,"position":1070,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"0.15.4"}
