redis-cli GET app:nameRedis Admin and redis-cli Cheat Sheet
redis-cli operational workflows, latency inspection, slowlog, config, ACL, clients, and safe administrative controls.
Export
Copy the compact sheet, download it, or print it.
Download
`D` dense toggle · `C` copy all
redis-cli workflows
Shell usage, monitoring, latency inspection, and scripting-friendly output.
bash
bash
redis-cli --raw LRANGE jobs 0 -1bash
redis-cli --csv HGETALL user:1bash
redis-cli --latency-doctorbash
redis-cli --latency-history -i 1bash
redis-cli --bigkeysbash
redis-cli --memkeysShow live stats
Continuously display ops, mem, clients, and other stats.
bashANYredisredis-climonitoring
bash
redis-cli --statbash
redis-cli --scan --pattern 'user:*'Dump an RDB snapshot from a live server
Request an RDB file from a live server and save it locally.
bashANYredisredis-clibackup
bash
redis-cli --rdb dump.rdbbash
MONITORNotes
Useful for debugging, but heavy and potentially unsafe on busy production nodes.
bash
SLOWLOG GET 20bash
SLOWLOG LENbash
LATENCY LATESTServer-side latency diagnosis
Get a narrative diagnosis of latency events.
bashANYredislatencymonitoring
bash
LATENCY DOCTORServer administration
Configuration, ACL, clients, and operational controls.
bash
CONFIG GET maxmemorybash
CONFIG SET maxmemory 1gbRewrite config file
Persist runtime config changes back to redis.conf where possible.
bashANYredisconfigadmin
bash
CONFIG REWRITEbash
CLIENT KILL 127.0.0.1:55000Pause client processing
Temporarily pause clients for controlled maintenance.
bashANYredisclientmaintenance
bash
CLIENT PAUSE 5000 WRITEbash
CLIENT UNPAUSEbash
ACL LISTbash
ACL SETUSER app-user on >strongpass ~app:* +GET +SET +DELbash
ACL GETUSER app-userbash
ACL DELUSER old-userbash
ACL CATbash
FLUSHDB ASYNCbash
FLUSHALL ASYNCForce a synchronous save
Block the server while creating an RDB snapshot.
bashANYredispersistencesave
bash
SAVEbash
BGSAVEbash
SHUTDOWN SAVEMore in Redis
Redis Persistence, Replication, and Cluster Cheat Sheet
RDB, AOF, replication, failover, Lua scripts, functions, and cluster command references for operational Redis use.
Redis Transactions, Pub/Sub, and Streams Cheat Sheet
Atomic transactions, optimistic locking, pub/sub messaging, streams, consumer groups, geo commands, bitmaps, and HyperLogLog.
Redis Data Types Cheat Sheet
High-value Redis commands for lists, sets, hashes, and sorted sets used in queues, objects, tags, and leaderboards.
Redis Cheat Sheet
Comprehensive Redis commands for redis-cli, key lifecycle, strings, expiration, and core operational workflows.