Redis Cache Management
Manages Redis cache operations including key-value manipulation, production-safe pattern searching, and TTL inspection.
The source repository doesn't declare a license. Check its terms before reusing the code.
Key features
- Human-readable TTL management and expiration tracking for precise cache lifecycle control
- Core key-value operations including GET, SET, DEL, and EXISTS with automatic environment detection
- Automated connection configuration supporting multiple naming conventions (REDIS_URL, CACHE_HOST, etc.)
- Built-in security restrictions preventing destructive commands like FLUSHALL and limiting remote connections
- Production-safe SCAN pattern searching with cursor-based pagination to prevent database blocking
Use cases
- Debugging application state by retrieving and inspecting cached values for specific users or sessions
- Monitoring database health and memory usage through server info and database statistics commands
- Cleaning up temporary cache data by performing bulk deletions based on glob patterns
FAQ
How does the skill connect to my Redis instance?
The skill features automated environment detection. it automatically scans your .env files for common naming conventions like REDIS_URL, CACHE_HOST, or DATABASE_URL, meaning it usually works out of the box without manual configuration.
Is this skill safe to use on production databases?
Yes. The skill is designed with production safety in mind. It uses the non-blocking SCAN command instead of the performance-heavy KEYS command to prevent database locking, and it explicitly blocks destructive commands like FLUSHALL.
What is the Redis Cache Management skill for Claude Code?
It is a specialized capability that allows Claude Code to interact with Redis databases. It enables the AI to perform core key-value operations, search for keys using patterns, and manage cache expiration without leaving the terminal.
What kind of Redis pattern matching does it support?
It supports standard Redis glob patterns including wildcards (*), single-character matches (?), and character sets ([abc]). This allows you to perform bulk operations or searches on specific groups of keys like 'session:*' or 'user:1??'.
Can I use this skill to debug cache expiration issues?
Absolutely. The skill provides detailed TTL (Time-To-Live) inspection and can convert millisecond precision data into human-readable formats, making it easy to see exactly when specific cache keys will expire.