Reference

Cheat Sheet

The commands you keep forgetting, with a one-line description and a real example you can copy - 384 across 26 tools. Pick a tool in the sidebar, or search across all of them.

redis-cli

Talk to a Redis server - keys, strings, hashes, lists, and expiry.
CommandWhat it doesExample
connectConnect to a Redis server.redis-cli -h localhost -p 6379
SET / GETStore and read a string value.SET user:1 "Ana"
SET … EXSet a value with a TTL in seconds.SET session:ab1 active EX 3600
DELDelete a key.DEL user:1
EXPIRE / TTLSet / check a key’s time-to-live.EXPIRE user:1 60
INCRAtomically increment a counter.INCR page:views
SCANIterate keys safely (prefer over KEYS in prod).SCAN 0 MATCH user:* COUNT 100
HSET / HGETALLStore and read a hash (object).HSET user:1 name Ana age 30
LPUSH / LRANGEPush to and read a list.LPUSH queue job1
SADD / SMEMBERSAdd to and read a set.SADD tags a b c
TYPEShow a key’s data type.TYPE user:1
PINGCheck the server is alive.PING
FLUSHDBWipe the current database (careful!).FLUSHDB