Безопасная работа с Redis в коде

engineering

redis-safety is a Claude Code skill that prevents common Redis performance and stability issues when working with go-redis, Jedis, redis-py, and ioredis. It activates whenever Redis-related code is edited and enforces a strict set of rules: blocking KEYS commands must be replaced with cursor-based SCAN iteration, key values must not exceed 10 KB, collection types (List/Set/Hash/ZSet) must stay under 5 000 elements, multiple calls must be batched with Pipeline to reduce network round-trips, and every SET must include a TTL to prevent memory leaks. FLUSHDB and FLUSHALL are banned in favour of targeted SCAN + DEL by key prefix. The skill is intended for engineering teams building production Redis integrations in Go, Java, or Python who want safety rules enforced automatically during code generation.