A working reference for the Redis usage patterns that show up again and again in real systems: caching, rate limiting, distributed locks, pub/sub, streams, and sorted-set leaderboards — plus the memor
Browse the actual product documentation and code examples included in this toolkit.
Key features of Redis Patterns Library
• **Atomic Lua scripts** you can `EVAL` directly (rate limiter, sliding window, • **`redis-cli` walkthroughs** (`scripts/*.sh`) that you can paste line by line to • **Dependency-free Python** (`examples/*.py`) built on a tiny RESP client that • An **annotated `redis.conf`** that explains *why* each tuning knob matters, not • **Redis 6.2+** (7.x recommended). Streams require 5.0+, `GETDEL` requires 6.2+, • **`redis-cli`** on your `PATH` for the shell walkthroughs.
**Atomic Lua scripts** you can `EVAL` directly (rate limiter, sliding window,
**`redis-cli` walkthroughs** (`scripts/*.sh`) that you can paste line by line to
**Dependency-free Python** (`examples/*.py`) built on a tiny RESP client that
An **annotated `redis.conf`** that explains *why* each tuning knob matters, not
**Redis 6.2+** (7.x recommended). Streams require 5.0+, `GETDEL` requires 6.2+,
**`redis-cli`** on your `PATH` for the shell walkthroughs.
Configure Redis Patterns Library parameters to see how the product works.
# 1. Point at your Redis (defaults shown) export REDIS_HOST=127.0.0.1 export REDIS_PORT=6379 # 2. Load the annotated config (optional, for a local test server) redis-server config/redis.conf # 3. Watch a pattern behave, line by line bash scripts/cache_aside_demo.sh bash scripts/leaderboard_demo.sh