Commands Supported and Disabled by DCS for Redis 5.0
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.
DCS 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.
- Some Redis commands (such as KEYS, FLUSHDB, and FLUSHALL) have usage restrictions, which are described in Other Command Usage Restrictions.
- Some high-risk commands can be renamed. For details, see Commands That Can Be Renamed.
Commands Supported by DCS for Redis 5.0
- Table 1 and Table 2 list commands supported by single-node, master/standby, and Redis Cluster DCS Redis 5.0 instances.
- Table 3 and Table 4 list commands supported by Proxy Cluster DCS for Redis 5.0 instances.
- Table 5 and Table 6 list the Redis commands supported by read/write splitting DCS Redis 5.0 instances.
For details about the command syntax, visit the Redis official website. For example, to view details about the SCAN command, enter SCAN in the search box on this page.
- Commands available since later Redis versions are not supported by earlier-version instances. Run a command on redis-cli to check whether it is supported by DCS for Redis. If the message "(error) ERR unknown command" is returned, the command is not supported.
- For DCS Redis 5.0 instances in the Redis Cluster mode, ensure that all commands in a pipeline are executed on the same shard.
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 |
PERSIST |
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 |
HLEN |
RPOPLPUSH |
SSCAN |
ZINTERSTORE |
SWAPDB |
OBJECT |
PSETEX |
- |
RPUSH |
- |
ZSCAN |
MEMORY |
PEXPIREAT |
SET |
- |
RPUSHX |
- |
ZRANGEBYLEX |
CONFIG |
PEXPIRE |
SETBIT |
- |
LPUSH |
- |
ZLEXCOUNT |
COMMAND |
KEYS |
SETEX |
- |
- |
- |
ZPOPMIN |
- |
- |
SETNX |
- |
- |
- |
ZPOPMAX |
- |
- |
SETRANGE |
- |
- |
- |
ZREMRANGEBYSCORE |
- |
- |
STRLEN |
- |
- |
- |
ZREM |
- |
- |
BITFIELD |
- |
- |
- |
- |
- |
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 (not supported by Redis Cluster instances) |
SCRIPT KILL |
GEORADIUS |
XGROUP |
- |
UNSUBSCRIBE |
- |
- |
SCRIPT LOAD |
GEORADIUSBYMEMBER |
XINFO |
- |
- |
- |
- |
- |
- |
XLEN |
- |
- |
- |
- |
- |
- |
XPENDING |
- |
- |
- |
- |
- |
- |
XRANGE |
- |
- |
- |
- |
- |
- |
XREAD |
- |
- |
- |
- |
- |
- |
XREADGROUP |
- |
- |
- |
- |
- |
- |
XREVRANGE |
- |
- |
- |
- |
- |
- |
XTRIM |
DEL |
APPEND |
HDEL |
BLPOP |
SADD |
ZADD |
FLUSHALL (FLUSHALL SYNC not supported.) |
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 |
PERSIST |
DECRBY |
HINCRBYFLOAT |
LLEN |
SINTERSTORE |
ZRANGEBYSCORE |
ROLE |
PTTL |
GET |
HKEYS |
LPOP |
SISMEMBER |
ZRANK |
MEMORY |
RENAME |
GETRANGE |
HMGET |
LPUSHX |
SMEMBERS |
ZREMRANGEBYRANK |
COMMAND |
RENAMENX |
GETSET |
HMSET |
LRANGE |
SMOVE |
ZREMRANGEBYCORE |
COMMAND COUNT |
RESTORE |
INCR |
HSET |
LREM |
SPOP |
ZREVRANGE |
COMMAND GETKEYS |
SORT |
INCRBY |
HSETNX |
LSET |
SRANDMEMBER |
ZREVRANGEBYSCORE |
COMMAND INFO |
TTL |
INCRBYFLOAT |
HVALS |
LTRIM |
SREM |
ZREVRANK |
CONFIG GET |
TYPE |
MGET |
HSCAN |
RPOP |
SUNION |
ZSCORE |
CONFIG RESETSTAT |
SCAN |
MSET |
HSTRLEN |
RPOPLPUSH |
SUNIONSTORE |
ZUNIONSTORE |
CONFIG REWRITE |
OBJECT |
MSETNX |
HLEN |
RPUSH |
SSCAN |
ZINTERSTORE |
CONFIG SET |
PEXPIRE |
PSETEX |
HKEYS |
RPUSHX |
- |
ZSCAN |
- |
PEXPIREAT |
SET |
- |
LPUSH |
- |
ZRANGEBYLEX |
- |
EXPIREAT |
SETBIT |
- |
- |
- |
ZLEXCOUNT |
- |
KEYS |
SETEX |
- |
- |
- |
ZREMRANGEBYSCORE |
- |
UNLINK |
SETNX |
- |
- |
- |
ZREM |
- |
TOUCH |
SETRANGE |
- |
- |
- |
ZREMRANGEBYLEX |
- |
RANDOMKEY |
STRLEN |
- |
- |
- |
ZPOPMAX |
- |
- |
BITFIELD |
- |
- |
- |
ZPOPMIN |
- |
- |
GETBIT |
- |
- |
- |
BZPOPMAX |
- |
- |
- |
- |
- |
- |
BZPOPMIN |
- |
- |
- |
- |
- |
- |
ZREVRANGEBYLEX |
- |
PFADD |
PSUBSCRIBE |
DISCARD |
AUTH |
EVAL |
GEOADD |
CLUSTER INFO |
PFCOUNT |
PUBLISH |
EXEC |
ECHO |
EVALSHA |
GEOHASH |
CLUSTER NODES |
PFMERGE |
PUBSUB |
MULTI |
PING |
SCRIPT EXISTS |
GEOPOS |
CLUSTER SLOTS |
- |
PUNSUBSCRIBE |
UNWATCH |
QUIT |
SCRIPT FLUSH |
GEODIST |
CLUSTER ADDSLOTS |
- |
SUBSCRIBE |
WATCH |
SELECT |
SCRIPT KILL |
GEORADIUS |
ASKING |
- |
UNSUBSCRIBE |
- |
CLIENT KILL |
SCRIPT LOAD |
GEORADIUSBYMEMBER |
READONLY |
- |
- |
- |
CLIENT LIST |
SCRIPT DEBUG YES|SYNC|NO |
GEOSEARCH |
READWRITE |
- |
- |
- |
CLIENT GETNAME |
- |
GEOSEARCHSTORE |
- |
- |
- |
- |
CLIENT SETNAME |
- |
- |
- |
Cluster commands in the preceding table are supported only by Proxy Cluster instances created on or after September 1, 2022.
DEL |
APPEND |
HDEL |
BLPOP |
SADD |
ZADD |
FLUSHALL (FLUSHALL SYNC not supported.) |
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 |
PERSIST |
DECRBY |
HINCRBYFLOAT |
LLEN |
SINTERSTORE |
ZRANGEBYSCORE |
MONITOR |
PTTL |
GET |
HKEYS |
LPOP |
SISMEMBER |
ZRANK |
SLOWLOG |
RANDOMKEY |
GETRANGE |
HMGET |
LPUSHX |
SMEMBERS |
ZREMRANGEBYRANK |
ROLE |
RENAME |
GETSET |
HMSET |
LRANGE |
SMOVE |
ZREMRANGEBYCORE |
SWAPDB |
RENAMENX |
INCR |
HSET |
LREM |
SPOP |
ZREVRANGE |
MEMORY |
RESTORE |
INCRBY |
HSETNX |
LSET |
SRANDMEMBER |
ZREVRANGEBYSCORE |
COMMAND |
SORT |
INCRBYFLOAT |
HVALS |
LTRIM |
SREM |
ZREVRANK |
COMMAND COUNT |
TTL |
MGET |
HSCAN |
RPOP |
SUNION |
ZSCORE |
COMMAND GETKEYS |
TYPE |
MSET |
HSTRLEN |
RPOPLPUSH |
SUNIONSTORE |
ZUNIONSTORE |
COMMAND INFO |
SCAN |
MSETNX |
HLEN |
RPUSH |
SSCAN |
ZINTERSTORE |
CONFIG GET |
OBJECT |
PSETEX |
- |
RPUSHX |
- |
ZSCAN |
CONFIG RESETSTAT |
PEXPIRE |
SET |
- |
LPUSH |
- |
ZRANGEBYLEX |
CONFIG REWRITE |
PEXPIREAT |
SETBIT |
- |
- |
- |
ZLEXCOUNT |
CONFIG SET |
EXPIREAT |
SETEX |
- |
- |
- |
ZREMRANGEBYSCORE |
- |
KEYS |
SETNX |
- |
- |
- |
ZREM |
- |
UNLINK |
SETRANGE |
- |
- |
- |
ZREMRANGEBYLEX |
- |
TOUCH |
STRLEN |
- |
- |
- |
BZPOPMAX |
- |
- |
BITFIELD |
- |
- |
- |
BZPOPMIN |
- |
- |
GETBIT |
- |
- |
- |
ZPOPMAX |
- |
- |
- |
- |
- |
- |
ZPOPMIN |
- |
- |
- |
- |
- |
- |
ZREVRANGEBYLEX |
- |
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 |
- |
CLIENT KILL |
SCRIPT LOAD |
GEORADIUSBYMEMBER |
XINFO |
- |
- |
- |
CLIENT LIST |
SCRIPT DEBUG YES|SYNC|NO |
GEOSEARCH |
XLEN |
- |
- |
- |
CLIENT GETNAME |
- |
GEOSEARCHSTORE |
XPENDING |
- |
- |
- |
CLIENT SETNAME |
- |
- |
XRANGE |
- |
- |
- |
- |
- |
- |
XREAD |
- |
- |
- |
- |
- |
- |
XREADGROUP |
- |
- |
- |
- |
- |
- |
XREVRANGE |
- |
- |
- |
- |
- |
- |
XTRIM |
Commands Disabled by DCS for Redis 5.0
The following lists commands disabled by DCS for Redis 5.0.
MIGRATE |
SLAVEOF |
- |
SHUTDOWN |
- |
LASTSAVE |
- |
DEBUG commands |
- |
SAVE |
- |
BGSAVE |
- |
BGREWRITEAOF |
- |
SYNC |
- |
PSYNC |
MIGRATE |
BGREWRITEAOF |
MOVE |
BGSAVE |
WAIT |
CLIENT commands |
- |
DEBUG OBJECT |
- |
DEBUG SEGFAULT |
- |
LASTSAVE |
- |
PSYNC |
- |
SAVE |
- |
SHUTDOWN |
- |
SLAVEOF |
- |
LATENCY commands |
- |
MODULE commands |
- |
LOLWUT |
- |
SWAPDB |
- |
REPLICAOF |
- |
SYNC |
MIGRATE |
SLAVEOF |
CLUSTER MEET |
- |
SHUTDOWN |
CLUSTER FLUSHSLOTS |
- |
LASTSAVE |
CLUSTER ADDSLOTS |
- |
DEBUG commands |
CLUSTER DELSLOTS |
- |
SAVE |
CLUSTER SETSLOT |
- |
BGSAVE |
CLUSTER BUMPEPOCH |
- |
BGREWRITEAOF |
CLUSTER SAVECONFIG |
- |
SYNC |
CLUSTER FORGET |
- |
PSYNC |
CLUSTER REPLICATE |
- |
- |
CLUSTER COUNT-FAILURE-REPORTS |
- |
- |
CLUSTER FAILOVER |
- |
- |
CLUSTER SET-CONFIG-EPOCH |
- |
- |
CLUSTER RESET |
Commands That Can Be Renamed
Command |
command, keys, flushdb, flushall, hgetall, scan, hscan, sscan, and zscan For Proxy Cluster instances, the dbsize and dbstats commands can also be renamed. |
---|---|
Method |
See Renaming Commands. |
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