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-code

Installs 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
1intellectronica avatartodoist-apiintellectronica/agent-skillsThis skill provides instructions for interacting with Todoist using the td CLI tool. It covers CRUD operations for tasks/projects/sections/labels/comments, and 1.7Kskills.sh installs
2nvidia avatarcuopt-numerical-optimization-api-pythonnvidia/skillsSolve LP, MILP, QP (beta) with cuOpt Python API — linear/quadratic objectives, integer variables, scheduling, portfolio, least squares.1.7Kskills.sh installs
3getsentry avatartyping-exclusion-workergetsentry/skillsPython typing exclusion worker: remove assigned mypy exclusion modules in small scoped batches, fix typing issues, run validation, and produce a structured comp1.7Kskills.sh installs
4affaan-m avataruspto-databaseaffaan-m/everything-claude-codeuspto database1.6Kskills.sh installs
5firebase avatarfirebase-firestore-basicsfirebase/agent-skillsComprehensive guide for Firestore basics including provisioning, security rules, and SDK usage. Use this skill when the user needs help setting up Firestore, wr1.6Kskills.sh installs
6dotnet avatarmsbuild-serverdotnet/skillsGuide for using MSBuild Server to improve CLI build performance. Activate when developers report slow incremental builds from the command line, or when CLI buil1.5Kskills.sh installs