AI for Redis
Operate and debug Redis with AI — data structures and memory, persistence (RDB/AOF), replication and Sentinel, Cluster sharding, eviction and TTLs, latency, and reliability.
Prompts
- Advanced
Redis ACL and Security Hardening Prompt
Harden Redis with ACL users and rules, command renaming, protected-mode, and bind, applying least privilege and closing default-access holes.
- Claude
- ChatGPT
Open prompt - Advanced
Redis Backup and Migration Plan Prompt
Plan Redis backups with BGSAVE/RDB, move keys with DUMP/RESTORE and MIGRATE, and sequence safe version upgrades and data migrations.
- Claude
- ChatGPT
Open prompt - Intermediate
Redis Caching Strategy Design Prompt
Design a Redis caching layer — cache-aside, write-through, write-behind patterns, TTLs, and stampede protection for read-heavy services.
- Claude
- ChatGPT
Open prompt - Advanced
Redis Cluster Sharding Design Prompt
Design Redis Cluster sharding — 16384 hash slots, resharding, hash tags, and multi-key operation constraints across shards.
- Claude
- ChatGPT
Open prompt - Intermediate
Redis Connection Pool Tuning Prompt
Tune Redis client connection pools: pool sizing, timeouts, maxclients, TCP keepalive, and avoiding connection exhaustion and leaks.
- Claude
- ChatGPT
Open prompt - Intermediate
Redis Data Structure Selection Prompt
Choose the right Redis type — string, hash, list, set, sorted set, stream, bitmap, or HyperLogLog — for a given use case and access pattern.
- Claude
- ChatGPT
Open prompt - Advanced
Redis Distributed Lock and Redlock Design Prompt
Design SET NX PX distributed locks safely, evaluate Redlock and its controversy, and add fencing tokens to avoid split-brain writes.
- Claude
- ChatGPT
Open prompt - Intermediate
Redis Eviction Policy Tuning Prompt
Tune Redis maxmemory and maxmemory-policy — allkeys-lru, volatile-ttl, LFU, noeviction — to match cache vs data-store workloads.
- Claude
- ChatGPT
Open prompt - Intermediate
Redis Keyspace Notifications Setup Prompt
Configure notify-keyspace-events to receive expired, evicted, and mutation events via keyspace/keyevent pub/sub, with delivery caveats.
- Claude
- ChatGPT
Open prompt - Intermediate
Redis Leaderboard Sorted Set Design Prompt
Design scalable leaderboards with Redis sorted sets using ZADD/ZRANGE/ZRANK, handling ties, pagination, and huge member counts.
- Claude
- ChatGPT
Open prompt - Advanced
Redis Lua Scripting Review Prompt
Review Redis Lua scripts — EVAL/EVALSHA, atomicity, KEYS vs ARGV, and script safety — to keep server-side logic correct and non-blocking.
- Claude
- ChatGPT
Open prompt - Advanced
Redis Memory Optimization Prompt
Analyze Redis memory usage — encodings, big keys, fragmentation — and reduce footprint with listpack/intset thresholds and smarter modeling.
- Claude
- ChatGPT
Open prompt - Advanced
Redis Persistence RDB/AOF Config Prompt
Configure Redis durability — RDB snapshots vs AOF, appendfsync policy, and hybrid persistence — balancing data safety against latency.
- Claude
- ChatGPT
Open prompt - Intermediate
Redis Pipelining and Batching Optimization Prompt
Optimize Redis throughput with pipelining and batching — cut round-trip latency, size batches safely, and avoid blocking the event loop.
- Claude
- ChatGPT
Open prompt - Intermediate
Redis Pub/Sub Messaging Design Prompt
Design Redis messaging — Pub/Sub vs Streams, fan-out patterns, sharded pub/sub, and the at-most-once delivery caveats to plan around.
- Claude
- ChatGPT
Open prompt - Intermediate
Redis Rate Limiter Design Prompt
Design token bucket and sliding window rate limiters in Redis using INCR/EXPIRE or atomic Lua, avoiding race conditions and TTL bugs.
- Claude
- ChatGPT
Open prompt - Intermediate
Redis Replication Setup Review Prompt
Review Redis primary/replica topology — replicaof, replica-read-only, sync health, and lag — for read scaling and failover readiness.
- Claude
- ChatGPT
Open prompt - Advanced
Redis Sentinel High Availability Design Prompt
Design Redis Sentinel HA — quorum, automatic failover, and client discovery — for resilient primary/replica setups without Cluster.
- Claude
- ChatGPT
Open prompt - Intermediate
Redis Session Store Design Prompt
Design a Redis session store with correct TTLs, serialization, and a decision between sticky sessions and shared session state.
- Claude
- ChatGPT
Open prompt - Intermediate
Redis SLOWLOG and Latency Analysis Prompt
Diagnose Redis latency using SLOWLOG, LATENCY monitoring, and latency-monitor-threshold to find slow commands and blocking sources.
- Claude
- ChatGPT
Open prompt - Advanced
Redis Streams Consumer Groups Design Prompt
Design Redis Streams processing — XADD/XREADGROUP/XACK, pending entries lists, claiming stuck messages, and trimming for at-least-once delivery.
- Claude
- ChatGPT
Open prompt - Advanced
Redis TLS Configuration Review Prompt
Review Redis TLS setup: tls-port, certificates, client authentication (mTLS), and cluster/replication TLS, catching common misconfigurations.
- Claude
- ChatGPT
Open prompt - Intermediate
Redis Transactions MULTI/EXEC Design Prompt
Design correct Redis transactions with MULTI/EXEC/WATCH optimistic locking and understand atomicity limits and rollback behavior.
- Claude
- ChatGPT
Open prompt - Beginner
Redis TTL and Expiration Strategy Prompt
Design TTL hygiene with EXPIRE/PEXPIRE, understand active vs lazy expiry, and avoid immortal keys and expiry-driven latency spikes.
- Claude
- ChatGPT
Open prompt
Guides
- · 9 min read
Redis Error Guide: 'ASK <slot> <host:port>' — Cluster Redirect During Resharding
Fix ASK redirects in Redis Cluster: understand slot migration, ASKING, MOVED vs ASK, client cluster-map refresh, and stuck resharding during live key migration.
Read guide - · 8 min read
Redis Error Guide: 'BUSY Redis is busy running a script' — Blocked by a Long Lua Script
Fix 'BUSY Redis is busy running a script' errors: lua-time-limit, SCRIPT KILL vs SHUTDOWN NOSAVE, looping Lua, and writing non-blocking scripts.
Read guide - · 8 min read
Redis Error Guide: 'BUSYGROUP Consumer Group name already exists' — Make Group Creation Idempotent
Fix BUSYGROUP Consumer Group name already exists in Redis Streams: understand XGROUP CREATE on restart, MKSTREAM, idempotent group setup, and safe consumer bootstrapping.
Read guide - · 9 min read
Redis Error Guide: 'CLUSTERDOWN Hash slot not served' — Restore Slot Coverage
Fix CLUSTERDOWN Hash slot not served in Redis Cluster: diagnose unassigned slots, failed masters with no replica, cluster-require-full-coverage, and broken cluster state.
Read guide - · 9 min read
Redis Error Guide: 'Could not connect to Redis ... Connection refused' — Nothing Is Listening on the Port
Fix Could not connect to Redis Connection refused: diagnose a stopped redis-server, wrong host/port, bind and protected-mode config, firewalls, and crashed instances.
Read guide - · 9 min read
Redis Error Guide: 'Connection reset by peer' / Broken Pipe to Redis
Fix Redis 'Connection reset by peer' and broken pipe errors: diagnose client output buffer limits, idle timeouts, TCP keepalive, OOM killer, and idle reaping.
Read guide - · 9 min read
Redis Error Guide: 'CROSSSLOT Keys in request don't hash to the same slot' — Use Hash Tags
Fix CROSSSLOT Keys in request don't hash to the same slot in Redis Cluster: understand slot hashing, hash tags, multi-key commands, MGET/MSET, and transaction key placement.
Read guide - · 8 min read
Redis Error Guide: 'EXECABORT Transaction discarded because of previous errors'
Fix EXECABORT errors in Redis MULTI/EXEC: diagnose queued syntax errors, unknown commands, wrong arity, and how it differs from runtime WRONGTYPE.
Read guide - · 10 min read
Redis Error Guide: Latency Spikes — Fork, AOF Rewrite, THP and Swap via SLOWLOG/LATENCY
Fix Redis latency spikes: diagnose fork/COW stalls, AOF rewrite, transparent hugepages, swap and slow commands via SLOWLOG and LATENCY DOCTOR.
Read guide - · 8 min read
Redis Error Guide: 'LOADING Redis is loading the dataset in memory' — Wait Out the Startup Load
Fix LOADING Redis is loading the dataset in memory: understand RDB/AOF load on startup, slow disk, huge dumps, replica full sync, and how to wait or speed up recovery.
Read guide - · 9 min read
Redis Error Guide: 'MASTERDOWN Link with MASTER is down and replica-serve-stale-data is no'
Fix Redis MASTERDOWN errors: diagnose broken master links, master_link_status:down, replica-serve-stale-data, network/auth failures, and resync recovery.
Read guide - · 9 min read
Redis Error Guide: 'ERR max number of clients reached' — Connection Limit Hit
Fix 'ERR max number of clients reached' in Redis: diagnose maxclients, leaked/idle connections, missing pooling, low ulimit -n, and CLIENT KILL relief.
Read guide - · 9 min read
Redis Error Guide: High mem_fragmentation_ratio — RSS Far Exceeds used_memory
Fix high Redis mem_fragmentation_ratio and RSS >> used_memory: diagnose allocator fragmentation, activedefrag, jemalloc, swap, and churn via INFO memory.
Read guide - · 10 min read
Redis Error Guide: 'MISCONF Redis is configured to save RDB snapshots but is currently unable to persist on disk' — Fix the Failing BGSAVE
Fix MISCONF Redis is configured to save RDB snapshots but unable to persist on disk: diagnose full disk, permissions on dir, failed BGSAVE, and stop-writes-on-bgsave-error.
Read guide - · 9 min read
Redis Error Guide: 'MOVED <slot> <host:port>' — Use a Cluster-Aware Client
Fix MOVED slot host:port redirects in Redis Cluster: understand slot ownership, cluster-aware clients, the -c flag, stale slot maps after resharding, and MOVED vs ASK.
Read guide - · 8 min read
Redis Error Guide: 'NOAUTH Authentication required' — Send AUTH Before Commands
Fix NOAUTH Authentication required in Redis: diagnose requirepass and ACL auth, missing AUTH in the connection string, wrong password source, and unauthenticated clients.
Read guide - · 8 min read
Redis Error Guide: 'NOSCRIPT No matching script. Please use EVAL' — Reload the Script Cache
Fix NOSCRIPT No matching script Please use EVAL in Redis: understand EVALSHA script cache misses after restart, SCRIPT FLUSH, failover, and the EVALSHA-then-EVAL fallback.
Read guide - · 10 min read
Redis Error Guide: 'OOM command not allowed when used memory > maxmemory' — Free Memory or Fix the Eviction Policy
Fix OOM command not allowed when used memory > maxmemory in Redis: diagnose maxmemory limits, noeviction policy, big keys, fragmentation, and unbounded data growth.
Read guide - · 8 min read
Redis Error Guide: 'Protocol error: invalid bulk length / too big inline request'
Fix Redis 'Protocol error: invalid bulk length' and 'too big inline request': diagnose non-RESP clients, oversized args, proto-max-bulk-len, and TLS mismatch.
Read guide - · 9 min read
Redis Error Guide: 'Bad file format reading the append only file' / Short Read Loading DB
Fix Redis crashes loading RDB/AOF: diagnose 'Bad file format', 'Short read' truncation, OOM on load, and repair with redis-check-aof/redis-check-rdb.
Read guide - · 9 min read
Redis Error Guide: 'READONLY You can't write against a read only replica' — Point Writes at the Master
Fix READONLY You can't write against a read only replica in Redis: diagnose writing to a replica, stale topology after failover, Sentinel/Cluster routing, and replica-read-only.
Read guide - · 9 min read
Redis Error Guide: Replica Stuck in Repeated Full Resync — Partial Resync Failing
Fix a Redis replica looping on full resync: diagnose small repl-backlog-size, replication ID mismatch, output buffer kills, and rising sync_full.
Read guide - · 8 min read
Redis Error Guide: 'WRONGPASS invalid username-password pair or user is disabled' — Fix the Credential or ACL User
Fix WRONGPASS invalid username-password pair or user is disabled in Redis: diagnose wrong passwords, disabled ACL users, wrong username, and stale rotated secrets.
Read guide - · 8 min read
Redis Error Guide: 'WRONGTYPE Operation against a key holding the wrong kind of value'
Fix WRONGTYPE errors in Redis: diagnose key-type mismatches, colliding key names, wrong command for a type, and format drift using TYPE and SCAN.
Read guide