Redis Cache Patterns
Implement effective Redis caching patterns with proper invalidation, TTL strategies, and data structure selection.
Usage
Describe your caching needs and this skill will recommend the appropriate Redis patterns and data structures.
Examples
- "Implement cache-aside pattern for database query results"
- "Use Redis sorted sets for a real-time leaderboard"
- "Design a distributed rate limiter using Redis"
Guidelines
- Choose the right data structure for each use case
- Set appropriate TTLs to prevent stale data accumulation
- Implement cache stampede protection for popular keys
- Monitor memory usage and configure eviction policies
- Use Redis pipelines and transactions for atomic multi-key operations