Master Redis performance - memory optimization, slow log analysis, benchmarking, monitoring, and tuning strategies
Provides Redis performance optimization including memory tuning, slow log analysis, benchmarking, and latency monitoring to diagnose and fix bottlenecks.
/plugin marketplace add pluginagentmarketplace/custom-plugin-redis/plugin install pluginagentmarketplace-developer-roadmap-interactive@pluginagentmarketplace/custom-plugin-redisThis skill inherits all available tools. When active, it can use any tool Claude has access to.
assets/performance-config.confreferences/PERFORMANCE_GUIDE.mdscripts/performance-check.shmaxmemory 4gb
maxmemory-policy allkeys-lru
maxmemory-samples 10
| Policy | Description | Use Case |
|---|---|---|
| noeviction | Error on full | Critical data |
| allkeys-lru | Evict LRU | General cache |
| volatile-lru | Evict LRU with TTL | Session cache |
| allkeys-lfu | Evict LFU | Frequency-based |
INFO memory
MEMORY DOCTOR
MEMORY USAGE key
MEMORY STATS
redis-cli --bigkeys
CONFIG SET slowlog-log-slower-than 10000 # 10ms
CONFIG SET slowlog-max-len 128
SLOWLOG GET 10
SLOWLOG LEN
SLOWLOG RESET
| Command | Fix |
|---|---|
| KEYS * | Use SCAN |
| SMEMBERS | Use SSCAN |
| HGETALL | Use HMGET |
# Basic
redis-benchmark -q -n 100000
# With pipelining
redis-benchmark -q -n 100000 -P 16
# Specific commands
redis-benchmark -t set,get -n 100000 -q
CONFIG SET latency-monitor-threshold 100
LATENCY DOCTOR
LATENCY HISTORY command
| Metric | Healthy | Warning | Critical |
|---|---|---|---|
| Memory | <75% | 75-90% | >90% |
| Ops/sec | Baseline | +50% | +100% |
| Latency | <1ms | 1-10ms | >10ms |
| Hit ratio | >95% | 90-95% | <90% |
performance-config.conf - Optimized configPERFORMANCE_GUIDE.md - Tuning guideINFO memory
redis-cli --bigkeys
Fix: Set eviction policy, add TTL
SLOWLOG GET 10
LATENCY DOCTOR
Fix: Optimize slow commands
| Code | Name | Recovery |
|---|---|---|
| PERF001 | OOM | Increase maxmemory or evict |
| PERF002 | HIGH_LAT | Check slow log |
| PERF003 | FRAG | MEMORY PURGE or restart |
This skill should be used when the user asks to "create a slash command", "add a command", "write a custom command", "define command arguments", "use command frontmatter", "organize commands", "create command with file references", "interactive command", "use AskUserQuestion in command", or needs guidance on slash command structure, YAML frontmatter fields, dynamic arguments, bash execution in commands, user interaction patterns, or command development best practices for Claude Code.
This skill should be used when the user asks to "create an agent", "add an agent", "write a subagent", "agent frontmatter", "when to use description", "agent examples", "agent tools", "agent colors", "autonomous agent", or needs guidance on agent structure, system prompts, triggering conditions, or agent development best practices for Claude Code plugins.
This skill should be used when the user asks to "create a hook", "add a PreToolUse/PostToolUse/Stop hook", "validate tool use", "implement prompt-based hooks", "use ${CLAUDE_PLUGIN_ROOT}", "set up event-driven automation", "block dangerous commands", or mentions hook events (PreToolUse, PostToolUse, Stop, SubagentStop, SessionStart, SessionEnd, UserPromptSubmit, PreCompact, Notification). Provides comprehensive guidance for creating and implementing Claude Code plugin hooks with focus on advanced prompt-based hooks API.