# 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.

- **Type:** Skill
- **Install:** `agentstack add skill-gnsubrahmanyam-agentic-skills-redis`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [GNSubrahmanyam](https://agentstack.voostack.com/s/gnsubrahmanyam)
- **Installs:** 0
- **Category:** [Databases](https://agentstack.voostack.com/c/databases)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [GNSubrahmanyam](https://github.com/GNSubrahmanyam)
- **Source:** https://github.com/GNSubrahmanyam/agentic-skills/tree/main/skills/redis

## Install

```sh
agentstack add skill-gnsubrahmanyam-agentic-skills-redis
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# 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)
- `data-strings`: String operations and atomic counters
- `data-hashes`: Hash maps for object storage
- `data-lists`: Ordered collections and queues
- `data-sets`: Unique element collections
- `data-sorted-sets`: Ordered unique elements with scores

### 2. Caching Patterns (HIGH)
- `cache-django`: Django cache framework integration
- `cache-fastapi`: FastAPI response caching
- `cache-database`: Database query result caching
- `cache-api`: API response caching with invalidation

### 3. Session Management (MEDIUM-HIGH)
- `session-django`: Django session storage in Redis
- `session-custom`: Custom session management
- `session-security`: Secure session handling

### 4. Pub/Sub Messaging (MEDIUM-HIGH)
- `pubsub-channels`: Channel-based messaging
- `pubsub-patterns`: Pattern matching subscriptions
- `pubsub-integration`: Application integration patterns

### 5. Performance Optimization (MEDIUM)
- `perf-persistence`: RDB and AOF configuration
- `perf-memory`: Memory management and eviction policies
- `perf-connection`: Connection pooling and pipelining

### 6. Security & Deployment (MEDIUM)
- `security-auth`: Authentication and access control
- `security-encryption`: Data encryption at rest
- `security-deployment`: Production Redis 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`

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [GNSubrahmanyam](https://github.com/GNSubrahmanyam)
- **Source:** [GNSubrahmanyam/agentic-skills](https://github.com/GNSubrahmanyam/agentic-skills)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-gnsubrahmanyam-agentic-skills-redis
- Seller: https://agentstack.voostack.com/s/gnsubrahmanyam
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
