Skip to content
Skills Library
Programming · Learning & explanation

redis-deep

/redis-deep

Redis deep-dive: 8 data structures with use cases, Redlock distributed locking algorithm, sliding window rate limiter with sorted sets, pub/sub patterns, streams for event log, pipeline batching, keyspace notifications, memory eviction policies, Redis Cluster vs Sentinel. Use when implementing caching, distributed locks, rate limiting, real-time features.

Licence
MIT
Last repository change
24.07.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
4
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 24.07.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Redis deep-dive: 8 data structures with use cases, Redlock distributed locking algorithm, sliding window rate limiter with sorted sets, pub/sub patterns, streams for event log, pipeline batching, keyspace notifications, memory eviction policies, Redis Cluster vs Sentinel. Use when implementing caching, distributed locks, rate limiting, real-time features.

Original author description

Redis deep-dive: 8 data structures with use cases, Redlock distributed locking algorithm, sliding window rate limiter with sorted sets, pub/sub patterns, streams for event log, pipeline batching, keyspace notifications, memory eviction policies, Redis Cluster vs Sentinel. Use when implementing caching, distributed locks, rate limiting, real-time features.

How it works

  1. When to Use This Skill
  2. Core Principles
  3. References available
Original SKILL.md headings · 23 lines, 174 words
SKILL.md preview
---
name: redis-deep
description: |
  Redis deep-dive: 8 data structures with use cases, Redlock distributed locking algorithm,
  sliding window rate limiter with sorted sets, pub/sub patterns, streams for event log,
  pipeline batching, keyspace notifications, memory eviction policies, Redis Cluster vs Sentinel.
  Use when implementing caching, distributed locks, rate limiting, real-time features.
allowed-tools: Read, Grep, Glob
---

# Redis Deep Dive

## When to Use This Skill
- Implementing distributed locking (Redlock)
- Building rate limiters with sliding windows
- Designing pub/sub for real-time features
- Using Redis Streams for event log
- Choosing memory eviction policy

## Core Principles

1. **Redis is not a database for data you cannot afford to lose** — AOF/RDB persistence is best-effort; design for Redis to be empty
2. **One connection per operation is wasteful** — use pipelining for batch operations (10× throughput improvement)
3. **Key naming convention is critical** — `resource:id:field` prevents collisions and enables pattern scanning
4. **TTL everything** — unbounded keys accumulate until OOM; if no TTL makes sense, use a large one (7 days)
5. **Redlock requires majority quorum** — N/2+1 nodes must confirm; never use single-node lock for distributed coordination

## References available
- `references/data-structures.md` — 8 data structures with TypeScript examples, Redlock, sliding window rate limiter, pub/sub
- `references/caching-patterns.md` — eviction policies, pipeline batching, keyspace notifications, cache-aside pattern
- `references/cluster-sentinel.md` — Redis Cluster vs Sentinel, topology decisions, failover behavior
Files in this package (4)
  • SKILL.md 2 KB
  • references/caching-patterns.md 5 KB
  • references/cluster-sentinel.md 5 KB
  • references/data-structures.md 3 KB

Versions

The database has no other skills named redis-deep.

Database snapshot: 13.11.2026 · package version d5159865c85d (SHA-256 digest of the entire package)

Downloads in the last 30 days: 1 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100redis-caching-and-pubsub
    Architecting high-performance caching strategies, Cache-Aside/Write-Through/Write-Behind patterns, Redis Pub/Sub, Streams, eviction policies, distributed locking (Redlock), and memory optimization. Use when implementing Redis caching, real-time messaging, rate limiting, or session management.
  • 95redis
    Use when choosing a Redis data structure for a use case, implementing caching or rate limiting, building pub/sub or Streams-based real-time messaging, or writing atomic operations like distributed locks.
  • 100redis
    Use when choosing a Redis data structure for a use case, implementing caching or rate limiting, building pub/sub or Streams-based real-time messaging, or writing atomic operations like distributed locks.
  • 100redis-patterns
    Redis data structure patterns, caching strategies, distributed locks, rate limiting, pub/sub, and connection management for production applications. Use when adding caching, a distributed lock, rate limiting, or pub/sub with Redis, or when key design needs review.
  • 100redis-patterns
    Redis data structure patterns, caching strategies, distributed locks, rate limiting, pub/sub, and connection management for production applications. Use when adding caching, a distributed lock, rate limiting, or pub/sub with Redis, or when key design needs review.
  • 100redis-patterns-expert
    Use when designing caching strategies (cache-aside, write-through, write-behind), implementing distributed locks, building rate limiters, leaderboards, real-time streams (XADD/consumer groups), pub/sub, or tuning eviction policies. Triggers: thundering-herd on cache miss,…

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.