
Redis Patterns
Covers the bread and butter of Redis in production: cache-aside and write-through patterns, distributed locks with proper token-based release, sliding window rate limiting via Lua, and the difference between Pub/Sub (fire-and-forget) and Streams (durable queues with consumer groups). The connection pooling and key naming conventions alone will save you from common mistakes. Includes tag-based cache invalidation for grouped keys and session storage with hash structures. The atomic operations are correctly implemented with pipelines and Lua scripts where needed. This is the reference you reach for when adding Redis to an app, not learning it from scratch.
- skills.sh installs
- 1.7K
- GitHub stars
- 229.1K
- last updated
- Jul 14, 2026
Install
$ npx -y skills add affaan-m/everything-claude-code --skill redis-patterns --agent claude-codeInstalls into .claude/skills of the current project.
Files
Redis Patterns
Quick reference for Redis best practices across common backend use cases.
How It Works
Redis is an in-memory data structure store that supports strings, hashes, lists, sets, sorted sets, streams, and more. Individual Redis commands are atomic on a single instance; multi-step workflows require Lua scripts, MULTI/EXEC transactions, or explicit synchronization to stay atomic. Data is optionally persisted via RDB snapshots or AOF logs. Clients communicate over TCP using the RESP protocol; connection pools are essential to avoid per-request handshake overhead.
When to Activate
- Adding caching to an application
- Implementing rate limiting or throttling
- Building distributed locks or coordination
- Setting up session or token storage
- Using Pub/Sub or Redis Streams for messaging
- Configuring Redis in production (pooling, eviction, clustering)
Data Structure Cheat Sheet
Sponsors
Details
- Repository
- github.com/affaan-m/everything-claude-code
- Categories
- Backend & APIs, Databases
- First seen
- Jun 3, 2026
More from affaan-m/everything-claude-code
All 256- Scholar Evaluation1.7K
- Skill Stocktake1.7K
- Tinystruct Patterns1.7K
- Ui To Vue1.7K
- Vite Patterns1.7K
- Cost Tracking1.6K
- Fsharp Testing1.6K
- Gget1.6K
- Homelab Pihole Dns1.6K
- Homelab Vlan Segmentation1.6K
- Homelab Wireguard Vpn1.6K
- Mle Workflow1.6K
- Motion Foundations1.6K
- Motion Patterns1.6K
- Quarkus Patterns1.6K
- Quarkus Security1.6K
- Quarkus Tdd1.6K
- Quarkus Verification1.6K
- Skill Scout1.6K
- Uspto Database1.6K
- Prisma Patterns1.4K
- Blender Motion State Inspection1.3K
- Recsys Pipeline Architect1.3K
- Uncloud1.2K