Exact key memory redis
Bytes used by a single key incl overhead; SAMPLES 0 = exact for collections
redis-cli MEMORY USAGE <name> SAMPLES 0
more redis
all 32 commands →
Slowlog inspection
redis-cli SLOWLOG GET 10; redis-cli SLOWLOG RESET
Latency root-cause advice
redis-cli LATENCY DOCTOR
Oldest idle clients
redis-cli CLIENT LIST | tr ' ' '\n' | grep -E 'addr=|age=|idle=' | paste - - - | sort -t= -k3 -rn | head
Cluster health check
redis-cli --cluster check <host>:<port>
Connect to Redis CLI
redis-cli -h redis -p 6379 -a <password>