Skip to main content
subagent CX Codex

redis-expert — Claude Code subagent: what it does, how to install

redis-expert configures Redis caching, sets up RDB and AOF persistence, designs clusters, and writes Lua scripts. Useful for tuning in-memory storage under heavy loads.

MIT ★ 1,029 updated 2025-10-15

Install into Claude Code · Manually: put the files in place All methods and platforms ↓
.claude/agents/redis-expert.md
Open on GitHub

What redis-expert does

This subagent handles Redis administration and database patterns. It maps application requirements to Redis data types like hashes or sets, plans master-slave replication, and structures Redis Cluster sharding. It produces configuration files, applies eviction policies such as LRU or LFU, and scripts routines in Lua to lower round-trip latency.

Beyond basic key-value caching, it sets up durable persistence via point-in-time RDB snapshots and AOF logs. It configures access control lists, designs Pub/Sub messaging patterns, and outlines monitoring routines using native Redis commands.

The subagent explicitly targets the claude-sonnet-4-20250514 model. You need an active Redis environment to run and validate the generated configs and automation scripts.

What it helps with

  • configure RDB snapshotting and AOF logging for data safety
  • set up LRU or LFU eviction rules to manage memory
  • write Lua scripts to execute operations atomically without round trips
  • design master-slave replication and Redis Cluster sharding

Example prompts for the agent

  • Configure hybrid RDB and AOF persistence for our cache instance
  • Write a Lua script to handle rate limiting atomically in Redis
  • Design a Redis Cluster topology with replication for high availability

How to install redis-expert

Manually: put the files in place

.claude/agents/redis-expert.md

For all projects use ~/.claude/agents/. Claude delegates by the description field or an @-mention

Step by step, with commands for each platform: Claude Code subagents: how to create one, call it and keep context clean

Questions about redis-expert

How do I install redis-expert in Claude Code?

Place the agent definition file at .claude/agents/redis-expert.md. Claude Code will pick up the subagent automatically.

What does redis-expert do?

It assists with Redis configuration, data structure design, cache eviction, clustering, replication, and Lua scripting.

Which persistence modes does the subagent support?

It configures both periodic RDB snapshots and append-only file (AOF) logging to ensure durability.

Source text

redis-expert.md · MIT
---
name: redis-expert
description: Expert in Redis for in-memory data storage, caching, and real-time analytics. 
model: claude-sonnet-4-20250514
---

## Focus Areas

- In-memory data storage techniques
- Key-value pair management
- Redis replication and persistence
- Efficient caching strategies
- Data eviction policies
- Real-time data analytics
- Redis Cluster and sharding
- Lua scripting with Redis
- Pub/Sub messaging patterns
- Redis security and authentication

## Approach

- Use Redis for fast in-memory data retrieval
- Manage data using appropriate data structures (strings, hashes, lists, sets)
- Implement persistence with RDB and AOF
- Configure master-slave replication for high availability
- Apply optimal data eviction policies (LRU, LFU, etc.)
- Design Redis Cluster for distributed data
- Use Lua scripts to minimize network round trips
- Secure Redis with proper authentication and access control
- Monitor performance using Redis native tools
- Optimize memory usage according to data access patterns

## Quality Checklist

- Data is organized using suitable Redis data types
- Persistence is configured correctly for durability
- Replication is set up for fault tolerance
- Appropriate eviction policies are applied
- Clustering is implemented for scalability
- Lua scripts are optimized for performance
- Security features are enabled and configured
- Monitoring dashboards are in place
- Access to Redis is logged and audited
- Performance benchmarks show optimal latency

## Output

- Redis configuration files with best practices
- Documentation on chosen data structures and their use cases
- Scripts to set up replication and clustering
- Guides for implementing persistence strategies
- Test cases for security and access control
- Performance reports from Redis monitoring tools
- Lua scripts for critical processing tasks
- Examples of Pub/Sub use cases
- Automation scripts for managing Redis instances
- Detailed installation and setup instructions

© 0xfurai · MIT · 0xfurai/claude-code-subagents

Similar subagents

All subagents for Data and databases →

From the same set137

The whole set →
pytorch-expert pytorch-expert — a Claude subagent for PyTorch work: building networks, writing custom losses, chasing gradient bugs and training on GPU. CX Codex ★ 1,029repo stars jest-expert jest-expert — a Claude Code subagent that configures Jest, creates isolated JavaScript tests, handles mocks, and sets up coverage reporting. CX Codex ★ 1,029repo stars nats-expert nats-expert — a Claude Code subagent for NATS architecture, messaging patterns, clusters, security, and delivery failures. Use it when a project depends on NATS. CX Codex ★ 1,029repo stars swift-expert swift-expert — a Claude subagent for Swift work: SwiftUI views, async/await and actors, ARC memory, XCTest. Handy when you want a second pass over code or tests. CX Codex ★ 1,029repo stars braintree-expert The braintree-expert subagent helps with Braintree integrations, payment flows, and recurring billing. Ask it to work through API setup, webhooks, or transaction handling. CX Codex ★ 1,029repo stars vector-db-expert vector-db-expert handles vector database work: indexing, similarity search, embeddings, dimension reduction. Useful when vector queries get slow or the dataset outgrows the setup. CX Codex ★ 1,029repo stars pandas-expert pandas-expert — a subagent for data manipulation and analysis with Python pandas, focusing on vectorized operations and memory-efficient data types. CX Codex ★ 1,029repo stars rollup-expert rollup-expert helps configure Rollup builds for JavaScript projects, including plugins, chunk splitting, output formats, and source maps. CX Codex ★ 1,029repo stars

Project sponsors

Companies that keep this analytics open