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
.claude/agents/redis-expert.mdWhat 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.mdFor all projects use ~/.claude/agents/. Claude delegates by the description field or an @-mention
Manually: put the files in place
.codex/agents/redis-expert.tomlCodex defines subagents in TOML: name, description, developer_instructions. Move the Markdown text into developer_instructions by hand. For all projects use ~/.codex/agents/
Manually: put the files in place
.cursor/agents/redis-expert.mdCursor also reads .claude/agents/
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