Caching & Key-Value Stores Packages
Client libraries for in-memory caches and key-value stores used to speed up reads and share state across services (Redis, Memcached).
Packages in Caching & Key-Value Stores
Sort:Used by Most Apps
connect-redis
Redis-backed session store for Express and Connect apps, built on express-session's Store interface.
Moka
Fast, concurrent in-memory caching library for Rust, inspired by Java's Caffeine
Predis
A flexible, pure-PHP Redis and Valkey client with clustering and replication support
Ristretto
A fast, concurrent, memory-bound in-memory cache for Go with TinyLFU admission and SampledLFU eviction for high hit ratios.
NestJS Cache Manager (@nestjs/cache-manager)
Official NestJS caching module wrapping cache-manager and Keyv for pluggable multi-store caching.
django-redis
A full-featured Redis cache and session backend for Django, with pluggable clients, sharding, Sentinel, and compression built in.
rate-limit-redis
A Redis-backed store for express-rate-limit that shares rate limit counters across multiple Node.js server instances.
@nest-lab/throttler-storage-redis
A Redis-backed storage provider for @nestjs/throttler, letting rate-limit counters survive restarts and be shared across horizontally-scaled NestJS instances.
redigo
A print-like Go client for Redis and Valkey with pipelining, pub/sub, connection pooling, and Lua script helpers.
ttlcache
A generic, thread-safe in-memory cache for Go with per-item TTL, automatic expiration, and loader-based cache-miss handling.
propcache
Fast, C-accelerated property caching for Python, providing `cached_property` and `under_cached_property` decorators
badger
An embeddable, persistent key-value database in pure Go, built on WiscKey's LSM-tree-plus-value-log design for high throughput on SSDs.
quick-lru
A simple, fast Least Recently Used (LRU) cache built on a dual-Map design
fakeredis
A pure-Python, in-memory implementation of the Redis protocol for testing.
Pebble
A high-performance, RocksDB/LevelDB-inspired embedded key-value store written in pure Go for CockroachDB and other Go applications.
python-diskcache
Pure-Python disk and file-backed cache that's faster than Memcached and Redis, with a Django-compatible dict-like API.
Otter
A high-performance, adaptive W-TinyLFU in-memory cache for Go with size, weight, and time-based eviction.
unstorage
A universal async key-value storage API with pluggable drivers for memory, filesystem, Redis, databases, and 30+ cloud platforms.
store2
A friendlier localStorage and sessionStorage API with JSON, namespacing, and pluggable extensions
foyer
A hybrid in-memory and disk cache library for Rust with pluggable eviction algorithms and zero-copy access.
redislock
Distributed Redis locking for Go, with fencing tokens to guard against stale writes after a lost lease.
redis_rate
Redis-backed rate limiting for Go using the GCRA leaky-bucket algorithm.
pymemcache
A comprehensive, fast, pure-Python client for the memcached caching protocol.
limits
Python rate limiting library with pluggable storage backends and multiple windowing strategies