Redis Safety is a specialized Claude Code skill designed to protect production environments by guiding developers toward secure and efficient Redis patterns. It automatically identifies and corrects high-risk operations like 'KEYS' and 'FLUSHALL', ensuring code uses cursor-based 'SCAN' iteration instead. The skill also enforces mandatory TTLs (Time To Live), manages 'big key' risks by limiting value sizes, and optimizes network performance through Pipeline batching. It supports major client libraries across Go, Java, Python, and Node.js, making it an essential tool for backend developers maintaining distributed systems.
主な機能
01Identifies and mitigates 'big key' issues with size and element limits
02777 GitHub stars
03Enforces mandatory TTL settings for all keys to prevent memory growth
04Optimizes network round-trips using Pipeline and batching patterns
05Cross-language support for go-redis, Jedis, redis-py, and ioredis
06Replaces blocking KEYS commands with non-blocking SCAN iteration
ユースケース
01Batching multiple Redis operations into a single Pipeline to improve backend latency
02Refactoring legacy Redis code to replace dangerous O(N) operations with safe cursors
03Automating the implementation of cache expiration policies to optimize memory usage