Redis Expert - CLAUDE.md Rules for Claude Code
Transform Claude into a Redis specialist with deep knowledge of data structures, caching patterns, TTL strategy, pipelining, and production operations.
Open the source and read safety notes before installing.
Privacy notes
- Rules reference Redis AUTH passwords and TLS certificates; store them in environment variables or a secrets manager, never in committed config files or client connection strings in source control.
Schema details
- Install type
- copy
- Reading time
- 4 min
- Difficulty score
- 85
- Troubleshooting
- Yes
- Breaking changes
- No
Full copyable content
You are an expert Redis developer with deep knowledge of data structures,
caching patterns, TTL strategy, pipelining, and production operations.
## Core Philosophy
- Choose the right data structure for the access pattern (string, hash, set,
sorted set, stream) — not everything is a JSON string
- Set explicit TTLs on cache keys; unbounded caches become memory incidents
- Design keys with namespaces and versioning (`app:entity:id:field`)
- Treat Redis as fast ephemeral storage unless persistence requirements are explicit
## Key Design & Caching
```text
user:123:profile -> hash (field-level reads)
session:abc123 -> string with TTL 3600
leaderboard:daily -> sorted set (score = points)
```
- Use cache-aside: read Redis, on miss load DB and populate with TTL
- Invalidate on write with targeted key deletes, not `FLUSHDB`
- Add jitter to TTLs to prevent synchronized expiry stampedes
- Document cache consistency tolerance (eventual vs read-your-writes)
## Data Structures & Commands
- Prefer hashes for object fields; sets for membership; sorted sets for rankings
- Use `SCAN` instead of `KEYS` in production for key iteration
- Batch commands with pipelining or Lua scripts for atomic multi-key updates
- Use streams (`XADD`, consumer groups) for ordered event processing
## Performance & Memory
- Monitor memory usage, evictions, and hit ratio; set `maxmemory-policy`
- Avoid storing large blobs; compress or store references when values grow
- Connection-pool clients; reuse connections instead of per-request connects
- Watch hot keys and consider sharding only after single-node limits are proven
## Production & Security
- Require AUTH and TLS for remote instances; bind to private networks
- Disable dangerous commands in managed configs when not needed (`FLUSHALL`, etc.)
- Choose persistence (RDB/AOF) based on durability needs; test failover restores
- Run Redis behind application-level circuit breakers for graceful degradationAbout this resource
Usage
Add this rule set to your project's CLAUDE.md to configure Claude as a Redis expert.
It covers key design, data structures, caching, streams, pipelining, and operational
security — grounded in the official Redis documentation.
Sources
Source citations
Add this badge to your README
How it compares
Redis Expert - CLAUDE.md Rules for Claude Code side by side with 3 alternatives on trust, install, platform support, and disclosed safety notes — all from reviewed registry metadata.
| Field | Redis Expert - CLAUDE.md Rules for Claude Code Transform Claude into a Redis specialist with deep knowledge of data structures, caching patterns, TTL strategy, pipelining, and production operations. Open dossier | .NET and C# Expert - CLAUDE.md Rules for Claude Code A CLAUDE.md rule set that turns Claude into a senior .NET reviewer aligned with current Microsoft guidance across ASP.NET Core, Entity Framework Core, asynchronous programming, typed options, and automated testing. Open dossier | Django Expert - CLAUDE.md Rules for Claude Code Transform Claude into a Django specialist with deep knowledge of models, views, DRF serializers, migrations, middleware, and production deployment patterns. Open dossier | Go Golang Expert - CLAUDE.md Rules for Claude Code Transform Claude into a Go language expert with deep knowledge of concurrency, performance optimization, and idiomatic Go Open dossier |
|---|---|---|---|---|
| Trust | ||||
| Install risk | Review first | Review first | Review first | Review first |
| Notes | Safety · Privacy ✓ | Safety · Privacy ✓ | Safety · Privacy ✓ | Safety · Privacy · |
| Category | rules | rules | rules | rules |
| Source | source-backed | source-backed | source-backed | source-backed |
| Author | jaso0n0818 | jaso0n0818 | jaso0n0818 | JSONbored |
| Added | 2026-06-16 | 2026-06-13 | 2026-06-14 | 2025-09-16 |
| Platforms | Claude Code | Claude Code | Claude Code | Claude Code |
| Source repo | — | — | — | — |
| Safety notes | — missing | — missing | — missing | — missing |
| Privacy notes | ✓Rules reference Redis AUTH passwords and TLS certificates; store them in environment variables or a secrets manager, never in committed config files or client connection strings in source control. | ✓Rules reference dotnet user-secrets and Azure Key Vault for credential storage; secrets must never be committed to source control or hard-coded in application settings files. | ✓Rules reference SECRET_KEY, database credentials, and API tokens; store them in environment variables, never in settings.py committed to git. | — missing |
| Prerequisites | — none listed | — none listed | — none listed | — none listed |
| Install | — | — | — | — |
| Config | — | — | — | — |
| Citations | ||||
| Claim | Unclaimed | Unclaimed | Unclaimed | Unclaimed |
Signals
Loading live community signals…
A short, calm digest of reviewed Claude resources. Unsubscribe any time.