Redis Command Reference & Connection Tool — Instantly look up Redis commands, test your connection, and monitor key statistics. Works offline too — shows the full cheatsheet even without a Redis instance.
CommandDescriptionExamplecheatsheetDisplay Redis command reference by categorycheatsheet / cheatsheet string``testTest a Redis connection and show server infotest / test redis://localhost:6379``monitorShow key count and memory stats per DBmonitor / monitor localhost 6379
bash
bash script.sh cheatsheet [category]
bash script.sh test [host] [port] [password]
bash script.sh monitor [host] [port] [password]
cheatsheet#CategoryCommands CoveredstringSET, GET, MSET, INCR, APPEND, STRLEN, SETNX…listLPUSH, RPUSH, LRANGE, LLEN, LPOP, BRPOP…hashHSET, HGET, HMGET, HGETALL, HDEL, HKEYS…setSADD, SMEMBERS, SISMEMBER, SUNION, SINTER…zsetZADD, ZRANGE, ZRANK, ZSCORE, ZREM, ZCOUNT…keyDEL, EXISTS, EXPIRE, TTL, RENAME, TYPE, SCAN…serverINFO, DBSIZE, CONFIG GET, FLUSHDB, DEBUG…scriptingEVAL, EVALSHA, SCRIPT LOAD/EXISTS/FLUSH
bash >= 4.0redis-cli (optional — required only for test and monitor commands; offline mode activates automatically if not found)bash
# Debian/Ubuntu
sudo apt install redis-tools
# macOS
brew install redis
# Alpine
apk add redis
text
$ bash script.sh cheatsheet string
🔴 Redis Cheatsheet — Strings
─────────────────────────────────────────────
SET key value [EX seconds] [PX ms] [NX|XX]
Set key to value. Options: EX (expire secs), NX (only if not exists)
Example: SET user:1:name "Alice" EX 3600
GET key
Get the value of a key. Returns nil if not exists.
Example: GET user:1:name
MSET key value [key value ...]
Set multiple keys atomically.
Example: MSET k1 v1 k2 v2 k3 v3
...
text
$ bash script.sh test localhost 6379
🔴 Redis Connection Test
─────────────────────────────────────────────
Host : localhost
Port : 6379
Status : ✅ CONNECTED
Server Info:
redis_version : 7.2.3
uptime_days : 4
connected_clients: 3
used_memory : 1.23M
maxmemory : 0 (unlimited)
role : master
aof_enabled : 0
text
$ bash script.sh monitor
🔴 Redis Key Monitor
─────────────────────────────────────────────
Host : localhost:6379
DB Keys Avg TTL
────────────────────
db0 1247 —
db1 89 —
Total keys : 1336
Memory : 4.56M