
redis-patterns
Redis data structure patterns, caching strategies, distributed locks
by affaan-mFree
Description
redis-patterns is an agent skill from the ECC collection by affaan-m, listed on skills.sh. It is a quick reference of Redis practice for production backends, covering data structure patterns, caching strategies, distributed locks, rate limiting, pub/sub and connection management. It explains that single Redis commands are atomic on one instance, while multi-step work needs Lua scripts, MULTI and EXEC transactions or explicit synchronisation, and it notes that connection pools matter because each request should not pay for a new handshake. The skill includes a cheat sheet of data structures, covering strings, hashes, lists, sets, sorted sets and streams. It applies when adding a cache, implementing rate limiting or throttling, building distributed locks, storing sessions or tokens, using pub/sub or streams for messaging, or configuring Redis in production for pooling, eviction and clustering. A skill is a SKILL.md file of instructions that an AI agent loads when a task calls for it. It is free and open source, and the skills.sh listing shows all three security audits passing.…
Highlights
- Caching strategies and rate limiting
- Distributed locks and atomicity
- Pub/sub and Redis Streams
- Data structure cheat sheet
Ratings & Reviews
No ratings yet
Be the first to rate redis-patterns.
People also visit

content-hash-cache-pattern
Cache expensive file processing results using SHA-256 content hashes

springboot-patterns
Spring Boot architecture patterns, REST API design, layered services

supabase-postgres-best-practices
Postgres performance rules: queries, connections, RLS, schema, locking
redis-patterns FAQ
What does the redis-patterns skill do?
It gives an agent Redis best practices for caching, rate limiting, locks, sessions, messaging and production setup.
Are Redis commands atomic?
Individual commands are atomic on a single instance. Multi-step workflows need Lua scripts, MULTI and EXEC, or explicit synchronisation, according to the skill.
What persistence options does it describe?
RDB snapshots and AOF logs.
How do I install it?
Run: npx skills add https://github.com/affaan-m/ecc --skill redis-patterns
Is it free?
Yes. It is free and open source.
Are there security findings?
The skills.sh listing shows Gen Agent Trust Hub, Socket and Snyk all passing.
What are the best redis-patterns alternatives?
Popular alternatives to redis-patterns include mcp-builder, backend-patterns and content-hash-cache-pattern. See all redis-patterns alternatives









