| SET | SET key value [EX seconds] [NX|XX] | Set a string value, optionally with an expiry or only if it does or doesn't exist | Strings |
| GET | GET key | Get a string value | Strings |
| MSET | MSET key value [key value …] | Set several keys at once | Strings |
| MGET | MGET key [key …] | Get several keys at once | Strings |
| INCR | INCR key | Add 1 to a number stored at a key | Strings |
| DECR | DECR key | Subtract 1 from a number stored at a key | Strings |
| INCRBY | INCRBY key increment | Add an integer to a number | Strings |
| APPEND | APPEND key value | Append to a string | Strings |
| STRLEN | STRLEN key | Length of a string | Strings |
| SETEX | SETEX key seconds value | Set a value that expires | Strings |
| SETNX | SETNX key value | Set only if the key doesn't exist | Strings |
| DEL | DEL key [key …] | Delete keys | Keys |
| EXISTS | EXISTS key [key …] | Count how many of the keys exist | Keys |
| EXPIRE | EXPIRE key seconds | Make a key expire after some seconds | Keys |
| TTL | TTL key | Seconds left before a key expires (-1 none, -2 missing) | Keys |
| PERSIST | PERSIST key | Remove a key's expiry | Keys |
| KEYS | KEYS pattern | Find keys matching a pattern — avoid on big production databases | Keys |
| SCAN | SCAN cursor [MATCH pattern] [COUNT n] | Safely iterate over keys in steps | Keys |
| RENAME | RENAME key newkey | Rename a key | Keys |
| TYPE | TYPE key | The data type stored at a key | Keys |
| HSET | HSET key field value [field value …] | Set fields of a hash | Hashes |
| HGET | HGET key field | Get one field of a hash | Hashes |
| HGETALL | HGETALL key | Get all fields and values of a hash | Hashes |
| HDEL | HDEL key field [field …] | Delete hash fields | Hashes |
| HEXISTS | HEXISTS key field | Does a hash field exist? | Hashes |
| HINCRBY | HINCRBY key field increment | Add to a number in a hash field | Hashes |
| HKEYS | HKEYS key | All field names of a hash | Hashes |
| HLEN | HLEN key | Number of fields in a hash | Hashes |
| LPUSH | LPUSH key value [value …] | Add items to the start of a list | Lists |
| RPUSH | RPUSH key value [value …] | Add items to the end of a list | Lists |
| LPOP | LPOP key | Remove and return the first item | Lists |
| RPOP | RPOP key | Remove and return the last item | Lists |
| LRANGE | LRANGE key start stop | Get a range of items (0 -1 for all) | Lists |
| LLEN | LLEN key | Length of a list | Lists |
| LINDEX | LINDEX key index | Get an item by position | Lists |
| BLPOP | BLPOP key [key …] timeout | Wait for an item to pop from a list | Lists |
| SADD | SADD key member [member …] | Add members to a set | Sets |
| SREM | SREM key member [member …] | Remove members from a set | Sets |
| SMEMBERS | SMEMBERS key | All members of a set | Sets |
| SISMEMBER | SISMEMBER key member | Is the value in the set? | Sets |
| SCARD | SCARD key | Number of members in a set | Sets |
| SUNION | SUNION key [key …] | Union of sets | Sets |
| SINTER | SINTER key [key …] | Intersection of sets | Sets |
| SDIFF | SDIFF key [key …] | Difference between sets | Sets |
| ZADD | ZADD key score member [score member …] | Add members with scores to a sorted set | Sorted sets |
| ZRANGE | ZRANGE key start stop [WITHSCORES] | Members by rank, lowest score first | Sorted sets |
| ZREVRANGE | ZREVRANGE key start stop [WITHSCORES] | Members by rank, highest score first | Sorted sets |
| ZRANK | ZRANK key member | Rank of a member | Sorted sets |
| ZSCORE | ZSCORE key member | Score of a member | Sorted sets |
| ZINCRBY | ZINCRBY key increment member | Add to a member's score | Sorted sets |
| ZREM | ZREM key member [member …] | Remove members | Sorted sets |
| ZCARD | ZCARD key | Number of members | Sorted sets |
| PUBLISH | PUBLISH channel message | Send a message to a channel | Pub/Sub |
| SUBSCRIBE | SUBSCRIBE channel [channel …] | Listen for messages on channels | Pub/Sub |
| XADD | XADD key * field value [field value …] | Append an entry to a stream | Streams |
| XRANGE | XRANGE key start end [COUNT n] | Read entries from a stream | Streams |
| MULTI | MULTI | Start a transaction | Transactions |
| EXEC | EXEC | Run all queued commands | Transactions |
| DISCARD | DISCARD | Cancel the transaction | Transactions |
| WATCH | WATCH key [key …] | Watch keys for changes before a transaction | Transactions |
| PING | PING | Check the server is alive (replies PONG) | Server |
| INFO | INFO [section] | Server information and statistics | Server |
| DBSIZE | DBSIZE | Number of keys in the current database | Server |
| SELECT | SELECT index | Switch to another numbered database | Server |
| FLUSHDB | FLUSHDB | Delete every key in the current database — destructive | Server |
| FLUSHALL | FLUSHALL | Delete every key in every database — destructive | Server |
| CONFIG GET | CONFIG GET parameter | Read a configuration value | Server |
| MONITOR | MONITOR | Stream every command the server receives | Server |