# redis-state-management

Guides AI coding agents through Redis caching workflows, distributed state persistence, and redis-py integration.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · 489 installs · ★ 62
- Author: manutej
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/manutej/luxor-claude-marketplace/tree/HEAD/plugins/luxor-database-pro/skills/redis-state-management/SKILL.md
- Updated: 2026-06-13
- HTML: https://affpapa.org/en/nevibecode/skills/redis-state-management

## What it does

The skill equips coding assistants with implementation patterns for Redis in distributed architectures. It details caching workflows such as cache-aside, write-through, and write-behind queues. It also guides the agent on when to pick hashes, sorted sets, lists, or streams over plain key-value strings.

Code implementations center on the Python `redis-py` driver. Guidance covers configuring connection pools, setting socket timeouts, parsing string responses automatically, and enabling client-side caching through RESP3. Storage trade-offs between RDB snapshots and AOF logs are also addressed.

Running these implementations requires an active Redis instance and the `redis-py` package. Bypassing connection pools in production will exhaust network sockets under high traffic.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add manutej/luxor-claude-marketplace --skill redis-state-management -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/redis-state-management/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/redis-state-management/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add manutej/luxor-claude-marketplace --skill redis-state-management -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/redis-state-management/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add manutej/luxor-claude-marketplace --skill redis-state-management -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/redis-state-management/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install manutej/luxor-claude-marketplace redis-state-management
```

2. **Manually: put the files in place**
- File: `.github/skills/redis-state-management/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add manutej/luxor-claude-marketplace --skill redis-state-management -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/manutej/luxor-claude-marketplace --path plugins/luxor-database-pro/skills/redis-state-management
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/redis-state-management/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add manutej/luxor-claude-marketplace --skill redis-state-management -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/manutej/luxor-claude-marketplace/tree/HEAD/plugins/luxor-database-pro/skills/redis-state-management/SKILL.md

## When to use it
- implement cache-aside caching with time-to-live expiration
- configure redis-py connection pools with timeout handling
- set up write-behind caching workers using queues
- select the right Redis data structure for queues or rankings

## Example prompts
- Generate a cache-aside user lookup function using redis-py and JSON serialization
- Configure a Redis connection pool with socket keepalive and response decoding
- Implement a write-behind background worker to persist cached updates into the database

## Similar
- [bun-redis](https://affpapa.org/en/nevibecode/skills/bun-redis.md) — skill · 388 installs
- [redis-patterns](https://affpapa.org/en/nevibecode/skills/patricio0312rev-redis-patterns.md) — skill · 361 installs
- [redis-core](https://affpapa.org/en/nevibecode/skills/redis-core.md) — skill · 4000 installs
- [redis-connections](https://affpapa.org/en/nevibecode/skills/redis-connections.md) — skill · 2800 installs
- [redis-best-practices](https://affpapa.org/en/nevibecode/skills/redis-best-practices.md) — skill · 2200 installs
- [redis-js](https://affpapa.org/en/nevibecode/skills/redis-js.md) — skill · 1500 installs

From the same set: [manutej/luxor-claude-marketplace](https://affpapa.org/en/nevibecode/by/manutej/luxor-claude-marketplace.md) — 65 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
