Production Redis patterns covering data structures, caching strategies, pub/sub, streams, transactions, Lua scripting, pipelining, distributed locks, rate limiting, session management, cluster sharding, Sentinel HA, persistence, and memory optimization. Use when user needs Redis caching, pub/sub, streams, distributed locks, session management, rate limiting with Redis, key design, or Redis cluster architecture. NOT for other caches like Memcached, NOT for message queues like RabbitMQ/Kafka unless comparing, NOT for relational database queries, NOT for general SQL or NoSQL document stores like MongoDB.
Use colon-delimited hierarchical names. Keep keys short but descriptive.
# Pattern: <entity>:<id>:<field>