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.| Command | What it does | Example |
|---|---|---|
connect | Connect to a Redis server. | redis-cli -h localhost -p 6379 |
SET / GET | Store and read a string value. | SET user:1 "Ana" |
SET … EX | Set a value with a TTL in seconds. | SET session:ab1 active EX 3600 |
DEL | Delete a key. | DEL user:1 |
EXPIRE / TTL | Set / check a key’s time-to-live. | EXPIRE user:1 60 |
INCR | Atomically increment a counter. | INCR page:views |
SCAN | Iterate keys safely (prefer over KEYS in prod). | SCAN 0 MATCH user:* COUNT 100 |
HSET / HGETALL | Store and read a hash (object). | HSET user:1 name Ana age 30 |
LPUSH / LRANGE | Push to and read a list. | LPUSH queue job1 |
SADD / SMEMBERS | Add to and read a set. | SADD tags a b c |
TYPE | Show a key’s data type. | TYPE user:1 |
PING | Check the server is alive. | PING |
FLUSHDB | Wipe the current database (careful!). | FLUSHDB |