Redis Rules
In-memory data store commands for caching, pub/sub messaging, streams, and key-value operations.
3 rules
Redis Key Naming Conventions
Beginner
Enforce consistent Redis key naming with colon-separated namespaces, predictable patterns, short prefixes, and TTL policies to maintain organized, scannable key spaces.
globs: **/*.ts, **/*.js, **/*.py, **/*.go
key-naming, namespaces, conventions, ttl
View Rule
Redis Memory Optimization Rules
Intermediate
Optimize Redis memory usage — hash ziplist tuning, key expiry policies, memory-efficient data structures, OBJECT ENCODING checks, and MEMORY USAGE monitoring.
globs: **/redis.conf, **/*.ts, **/*.py
memory, optimization, ziplist, encoding
View Rule
Redis Production Safety Rules
Intermediate
Prevent dangerous Redis operations in production — ban KEYS and FLUSHALL, require maxmemory configuration, enforce persistence settings, and mandate connection pooling.
globs: **/redis.conf, **/*.ts, **/*.py
production, safety, maxmemory, persistence
View Rule