Redis is an in-memory data structure storage system. The term REDIS represents Remote Dictionary Server.
All the command names in Redis are case-insensitive. So “GET <key>” and “get <key>” and “Get <key>” means the same thing in Redis.
Here is the list of Redis tutorials-
Installation & Management
Security
Generic/Management Commands
Here are the commands used to manage Redis-
Generic Key Commands
Here are generic commands for Redis key management-
Command | Usage | Details |
---|
KEYS | | |
SCAN | | |
EXISTS | | |
TYPE | | |
COPY | | |
RENAME | | |
RENAMENX | | |
DEL | | |
TOUCE | | |
RANDOMKEY | | |
SORT | | |
SORT_RO | | |
Expire Commands
The following commands are for expiring and persisting key-
Command | Usage | Details |
---|
EXPIRE | | |
EXPIREAT | | |
EXPIRETIME | | |
PEXPIRE | | |
PEXPIREAT | | |
PEXPIRETIME | | |
PERSIST | | |
TTL | | |
PTTL | | |
Object Commands
These are commands for managing Redis objects-
Command | Usage | Details |
---|
OBJECT ENCODING | | |
OBJECT FREQ | | |
OBJECT IDLETIME | | |
OBJECT REFCOUNT | | |
Migration/Backup Commands
Here are the commands for migration and/or backup-
String Commands
Here are the commands we can use for different operations on String data type in Redis-
Get Commands
String Set Commands
Increment Commands
Decrement Commands
Substring Commands
List Commands
Here are the commands used to manipulate a list in Redis-
General Operation Commands
Blocking Operation Commands
Command | Usage | Details |
---|
BLMOVE | | |
MLMPOP | | |
BLPOP | Block until popping from HEAD of first non-empty list | BLPOP Command Details |
BRPOP | | |
BRPOPLPUSH | | |
Hash Commands
Here are the commands for performing operations on Redis Hash-
Set Commands
The following commands are used to manage and perform operations on Redis Set data type-
Sorted Set Commands
Here are the commands Sorted Set data structure-
Command | Usage | Details |
---|
BZMPOP | | |
BZPOPMAX | | |
BZPOPMIN | | |
ZADD | | |
ZCARD | | |
ZCOUNT | | |
ZDIFF | | |
ZDIFFSTORE | | |
ZINCRBY | | |
ZINTER | | |
ZINTERCARD | | |
ZINTERSTORE | | |
ZLEXCOUNT | | |
ZMPOP | | |
ZMSCORE | | |
ZPOPMAX | | |
ZPOPMIN | | |
ZRANDMEMBER | | |
ZRANGE | | |
ZRANGEBYLEX | | |
ZRANGEBYSCORE | | |
ZRANGESTORE | | |
ZRANK | | |
ZREM | | |
ZREMRANGEBYLEX | | |
ZREMRANGEBYRANK | | |
ZREMRANGEBYSCORE | | |
ZREVRANGE | | |
ZREVRANGEBYLEX | | |
ZREVRANGEBYSCORE | | |
ZREVRANK | | |
ZSCAN | | |
ZSCORE | | |
ZUNION | | |
ZUNIONSTORE | | |
Geospatial Commands
Here are some locations of cities, just as an example, so we can use those for the following Goespatial commands-
Longitude | Latitude | City |
---|
2.352222 | 48.856613 | Paris |
100.501762 | 13.756331 | Bangkok |
114.109497 | 22.396427 | Hong Kong |
139.691711 | 35.689487 | Tokyo |
12.496365 | 41.902782 | Rome |
-87.629799 | 41.878113 | Chicago |
13.404954 | 52.520008 | Berlin |
-79.383186 | 43.653225 | Toronto |
37.617298 | 55.755825 | Moscow |
-0.127758 | 51.507351 | London |
-74.005974 | 40.712776 | New York |
72.877655 | 19.075983 | Mumbai |
135.502167 | 34.693737 | Osaka |
Here are the commands for handling Geospatial data-
HyperLogLog Commands
Here are the commands for HyperLogLog data structure-
Command | Usage | Details |
---|
PFADD | | |
PFCOUNT | | |
PFDEBUG | | |
PFMERGE | | |
PFSELFTEST | | |
Stream Commands
Here are the commands for handling Stream-
Command | Usage | Details |
---|
XACK | | |
XADD | | |
XAUTOCLAIM | | |
XCLAIM | | |
XDEL | | |
XGROUP CREATE | | |
XGROUP CREATECONSUMER | | |
XGROUP DELCONSUMER | | |
XGROUP DESTROY | | |
XGROUP SETID | | |
XINFO CONSUMERS | | |
XINFO GROUPS | | |
XINFO STREAM | | |
XLEN | | |
XPENDING | | |
XRANGE | | |
XREAD | | |
XREADGROUP | | |
XREVRANGE | | |
XSETID | | |
XTRIM | | |
Pub/Sub Commands
Here are the commands for Pub/Sub-
Command | Usage | Details |
---|
PSUBSCRIBE | | |
PUBLISH | | |
PUBSUB CHANNELS | | |
PUBSUB NUMPAT | | |
PUBSUB NUMSUB | | |
PUBSUB SHARDCHANNELS | | |
PUBSUB SHARDNUMSUB | | |
PUNSUBSCRIBE | | |
SPUBLISH | | |
SSUBSCRIBE | | |
SUBSCRIBE | | |
SUNSUBSCRIBE | | |
UNSUBSCRIBE | | |
Transaction Commands
Here are the commands for handling Transaction-
Command | Usage | Details |
---|
DISCARD | | |
EXEC | | |
MULTI | | |
UNWATCH | | |
WATCH | | |