Updated on 2024-11-26 GMT+08:00

Commands Supported and Disabled by DCS for Redis 4.0

DCS for Redis 4.0 is developed based on Redis 4.0.14 and is compatible with open-source protocols and commands.

This section describes DCS for Redis 4.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, which are listed in Commands Supported by DCS for Redis 4.0. Any client compatible with the Redis protocol can access DCS.

Commands Supported by DCS for Redis 4.0

Table 1 and Table 2 list the Redis commands supported by single-node, master/standby, and Redis Cluster DCS Redis 4.0 instances.

Table 3 and Table 4 list the Redis commands supported by Proxy Cluster DCS Redis 4.0 instances.

  • 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 4.0 instances in the Redis Cluster mode, ensure that all commands in a pipeline are executed on the same shard.
Table 1 Commands supported by single-node, master/standby, and Redis Cluster DCS Redis 4.0 instances (1)

Keys

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

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

PEXPIRE

SET

-

RPUSHX

-

ZRANGEBYLEX

CONFIG

PEXPIREAT

SETBIT

-

LPUSH

-

ZLEXCOUNT

COMMAND

-

SETEX

-

-

-

ZREMRANGEBYSCORE

-

-

SETNX

-

-

-

ZREM

-

-

SETRANGE

-

-

-

-

-

-

STRLEN

-

-

-

-

-

-

BITFIELD

-

-

-

-

-

Table 2 Commands supported by single-node, master/standby, and Redis Cluster DCS Redis 4.0 instances (2)

HyperLoglog

Pub/Sub

Transactions

Connection

Scripting

Geo

PFADD

PSUBSCRIBE

DISCARD

AUTH

EVAL

GEOADD

PFCOUNT

PUBLISH

EXEC

ECHO

EVALSHA

GEOHASH

PFMERGE

PUBSUB

MULTI

PING

SCRIPT EXISTS

GEOPOS

-

PUNSUBSCRIBE

UNWATCH

QUIT

SCRIPT FLUSH

GEODIST

-

SUBSCRIBE

WATCH

SELECT (not supported by Redis Cluster instances)

SCRIPT KILL

GEORADIUS

-

UNSUBSCRIBE

-

-

SCRIPT LOAD

GEORADIUSBYMEMBER

Table 3 Commands supported by Proxy Cluster DCS Redis 4.0 instances (1)

Keys

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

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

-

TOUCH

SETNX

-

-

-

ZREM

-

UNLINK

SETRANGE

-

-

-

ZREMRANGEBYLEX

-

-

STRLEN

-

-

-

ZREVRANGEBYLEX

-

-

BITFIELD

-

-

-

-

-

-

GETBIT

-

-

-

-

-

Table 4 Commands supported by Proxy Cluster DCS Redis 4.0 instances (2)

HyperLoglog

Pub/Sub

Transactions

Connection

Scripting

Geo

Cluster

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

CLIENT KILL

SCRIPT KILL

GEORADIUS

ASKING

-

UNSUBSCRIBE

-

CLIENT LIST

SCRIPT LOAD

GEORADIUSBYMEMBER

READONLY

-

-

-

CLIENT GETNAME

SCRIPT DEBUG YES|SYNC|NO

GEOSEARCH

READWRITE

-

-

-

CLIENT SETNAME

-

GEOSEARCHSTORE

-

Commands Disabled by DCS for Redis 4.0

The following lists commands disabled by DCS for Redis 4.0.

Table 5 Redis commands disabled in single-node and master/standby DCS Redis 4.0 instances

Keys

Server

MIGRATE

SLAVEOF

-

SHUTDOWN

-

LASTSAVE

-

DEBUG commands

-

SAVE

-

BGSAVE

-

BGREWRITEAOF

-

SYNC

-

PSYNC

Table 6 Redis commands disabled in Proxy Cluster DCS Redis 4.0 instances

Keys

Server

Sorted Set

Cluster

MIGRATE

BGREWRITEAOF

BZPOPMAX

READONLY

MOVE

BGSAVE

BZPOPMIN

READWRITE

RANDOMKEY

CLIENT commands

ZPOPMAX

-

WAIT

DEBUG OBJECT

ZPOPMIN

-

-

DEBUG SEGFAULT

-

-

-

LASTSAVE

-

-

-

PSYNC

-

-

-

SAVE

-

-

-

SHUTDOWN

-

-

-

SLAVEOF

-

-

-

LATENCY commands

-

-

-

MODULE commands

-

-

-

LOLWUT

-

-

-

SWAPDB

-

-

-

REPLICAOF

-

-

-

SYNC

-

-

Table 7 Redis commands disabled in Redis Cluster DCS Redis 4.0 instances

Keys

Server

Cluster

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