Agentic-skills redis-data-structures-caching-best-practices
Comprehensive Redis framework with data structures, caching patterns, session management, and performance optimization. Use when implementing caching, session storage, task queues, or real-time features.
install
source · Clone the upstream repo
git clone https://github.com/GNSubrahmanyam/agentic-skills
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/GNSubrahmanyam/agentic-skills "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/redis" ~/.claude/skills/gnsubrahmanyam-agentic-skills-redis-data-structures-caching-best-practices && rm -rf "$T"
manifest:
skills/redis/SKILL.mdsource content
Redis Data Structures & Caching Best Practices
Comprehensive Redis framework with 50+ rules across data structures, caching patterns, session management, pub/sub messaging, and performance optimization. Designed for high-performance caching, session storage, and real-time applications.
When to Apply
Reference these guidelines when:
- Implementing application caching (Django, FastAPI)
- Managing user sessions and authentication
- Building real-time features with pub/sub
- Optimizing database performance with Redis
- Implementing task queues and job processing
- Building scalable web applications
- Managing distributed locks and rate limiting
Rule Categories by Priority
| Priority | Category | Impact | Rules | Prefix | | --- | --- | --- | --- | --- | --- | | 1 | Data Structures | HIGH | 12 |
data- |
| 2 | Caching Patterns | HIGH | 15 | cache- |
| 3 | Session Management | MEDIUM-HIGH | 8 | session- |
| 4 | Pub/Sub Messaging | MEDIUM-HIGH | 6 | pubsub- |
| 5 | Performance Optimization | MEDIUM | 6 | perf- |
| 6 | Security & Deployment | MEDIUM | 4 | security- |
Quick Reference
1. Data Structures (HIGH)
: String operations and atomic countersdata-strings
: Hash maps for object storagedata-hashes
: Ordered collections and queuesdata-lists
: Unique element collectionsdata-sets
: Ordered unique elements with scoresdata-sorted-sets
2. Caching Patterns (HIGH)
: Django cache framework integrationcache-django
: FastAPI response cachingcache-fastapi
: Database query result cachingcache-database
: API response caching with invalidationcache-api
3. Session Management (MEDIUM-HIGH)
: Django session storage in Redissession-django
: Custom session managementsession-custom
: Secure session handlingsession-security
4. Pub/Sub Messaging (MEDIUM-HIGH)
: Channel-based messagingpubsub-channels
: Pattern matching subscriptionspubsub-patterns
: Application integration patternspubsub-integration
5. Performance Optimization (MEDIUM)
: RDB and AOF configurationperf-persistence
: Memory management and eviction policiesperf-memory
: Connection pooling and pipeliningperf-connection
6. Security & Deployment (MEDIUM)
: Authentication and access controlsecurity-auth
: Data encryption at restsecurity-encryption
: Production Redis deploymentsecurity-deployment
Quick Start
- 📖 Overview:
skills/redis-skill/SKILL.md - 📚 Complete Reference:
skills/redis-skill/AGENTS.md - 🔍 Specific Rules:
skills/redis-skill/rules/[category]-[rule-name].md