Redis 5.0 Commands
DCS for Redis 5.0 is developed based on Redis 5.0.9 and is compatible with open-source protocols and commands.
This section describes DCS for Redis 5.0's compatibility with Redis commands, including supported and disabled commands. For more information about the command syntax, visit the Redis official website.
DCS for Redis instances support most Redis commands. Any client compatible with the Redis protocol can access DCS.
- For security purposes, some Redis commands are disabled in DCS, as listed in Commands Disabled by DCS for Redis 5.0.
- Some Redis commands are supported by cluster DCS instances for multi-key operations in the same slot. For details, see Command Restrictions for Cluster Instances.
- Some Redis commands have usage restrictions, which are described in Other Command Usage Restrictions.
Commands Supported by DCS for Redis 5.0
The following lists commands supported by DCS for Redis 5.0.
Key |
String |
Hash |
List |
Set |
Sorted set |
Server |
---|---|---|---|---|---|---|
DEL |
APPEND |
HDEL |
BLPOP |
SADD |
ZADD |
FLUSHALL |
DUMP |
BITCOUNT |
HEXISTS |
BRPOP |
SCARD |
ZCARD |
FLUSHDB |
EXISTS |
BITOP |
HGET |
BRPOPLRUSH |
SDIFF |
ZCOUNT |
DBSIZE |
EXPIRE |
BITPOS |
HGETALL |
LINDEX |
SDIFFSTORE |
ZINCRBY |
TIME |
MOVE |
DECR |
HINCRBY |
LINSERT |
SINTER |
ZRANGE |
INFO |
PERSISI |
DECRBY |
HINCRBYFLOAT |
LLEN |
SINTERSTORE |
ZRANGEBYSCORE |
KEYS |
PTTL |
GET |
HKEYS |
LPOP |
SISMEMBER |
ZRANK |
CLIENT KILL |
RANDOMKEY |
GETRANGE |
HMGET |
LPUSHX |
SMEMBERS |
ZREMRANGEBYRANK |
CLIENT LIST |
RENAME |
GETSET |
HMSET |
LRANGE |
SMOVE |
ZREMRANGEBYCORE |
CLIENT GETNAME |
RENAMENX |
INCR |
HSET |
LREM |
SPOP |
ZREVRANGE |
CLIENT SETNAME |
RESTORE |
INCRBY |
HSETNX |
LSET |
SRANDMEMBER |
ZREVRANGEBYSCORE |
CONFIG GET |
SORT |
INCRBYFLOAT |
HVALS |
LTRIM |
SREM |
ZREVRANK |
MONITOR |
TTL |
MGET |
HSCAN |
RPOP |
SUNION |
ZSCORE |
SLOWLOG |
TYPE |
MSET |
HSTRLEN |
RPOPLPU |
SUNIONSTORE |
ZUNIONSTORE |
ROLE |
SCAN |
MSETNX |
- |
RPOPLPUSH |
SSCAN |
ZINTERSTORE |
SWAPDB |
OBJIECT |
PSETEX |
- |
RPUSH |
SPOP |
ZSCAN |
MEMORY |
- |
SET |
- |
RPUSHX |
- |
ZRANGEBYLEX |
- |
- |
SETBIT |
- |
- |
- |
ZLEXCOUNT |
- |
- |
SETEX |
- |
- |
- |
ZPOPMIN |
- |
- |
SETNX |
- |
- |
- |
ZPOPMAX |
- |
- |
SETRANGE |
- |
- |
- |
- |
- |
- |
STRLEN |
- |
- |
- |
- |
- |
- |
BITFIELD |
- |
- |
- |
- |
- |
HyperLogLog |
Pub/Sub |
Transaction |
Connection |
Scripting |
Geo |
Stream |
---|---|---|---|---|---|---|
PFADD |
PSUBSCRIBE |
DISCARD |
AUTH |
EVAL |
GEOADD |
XACK |
PFCOUNT |
PUBLISH |
EXEC |
ECHO |
EVALSHA |
GEOHASH |
XADD |
PFMERGE |
PUBSUB |
MULTI |
PING |
SCRIPT EXISTS |
GEOPOS |
XCLAIM |
- |
PUNSUBSCRIBE |
UNWATCH |
QUIT |
SCRIPT FLUSH |
GEODIST |
XDEL |
- |
SUBSCRIBE |
WATCH |
SELECT |
SCRIPT KILL |
GEORADIUS |
XGROUP |
- |
UNSUBSCRIBE |
- |
- |
SCRIPT LOAD |
GEORADIUSBYMEMBER |
XINFO |
- |
- |
- |
- |
- |
- |
XLEN |
- |
- |
- |
- |
- |
- |
XPENDING |
- |
- |
- |
- |
- |
- |
XRANGE |
- |
- |
- |
- |
- |
- |
XREAD |
- |
- |
- |
- |
- |
- |
XREADGROUP |
- |
- |
- |
- |
- |
- |
XREVRANGE |
- |
- |
- |
- |
- |
- |
XTRIM |
Commands Disabled by DCS for Redis 5.0
The following lists commands disabled by DCS for Redis 5.0.
Key |
Server |
---|---|
MIGRATE |
SLAVEOF |
- |
SHUTDOWN |
- |
LASTSAVE |
- |
DEBUG commands |
- |
COMMAND |
- |
SAVE |
- |
BGSAVE |
- |
BGREWRITEAOF |
- |
SYNC |
- |
PSYNC |
Key |
Server |
Cluster |
---|---|---|
MIGRATE |
SLAVEOF |
CLUSTER MEET |
- |
SHUTDOWN |
CLUSTER FLUSHSLOTS |
- |
LASTSAVE |
CLUSTER ADDSLOTS |
- |
DEBUG commands |
CLUSTER DELSLOTS |
- |
COMMAND |
CLUSTER SETSLOT |
- |
SAVE |
CLUSTER BUMPEPOCH |
- |
BGSAVE |
CLUSTER SAVECONFIG |
- |
BGREWRITEAOF |
CLUSTER FORGET |
- |
SYNC |
CLUSTER REPLICATE |
- |
PSYNC |
CLUSTER COUNT-FAILURE-REPORTS |
- |
- |
CLUSTER FAILOVER |
- |
- |
CLUSTER SET-CONFIG-EPOCH |
- |
- |
CLUSTER RESET |
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot