Help Center/ Distributed Cache Service/ Service Overview/ Command Compatibility/ Commands Supported and Disabled by DCS for Redis 6.0
Updated on 2024-10-30 GMT+08:00

Commands Supported and Disabled by DCS for Redis 6.0

Huawei Cloud DCS for Redis 6.0 is fully compatible with open-source Redis 6.

This section describes DCS for Redis 6.0's compatibility with KeyDB commands, including supported and disabled commands.

For more information about the command syntax, visit the Redis official website.

DCS Redis instances support most Redis commands. Any client compatible with the Redis protocol can access DCS.

Commands Supported by DCS for Redis 6.0 Basic Edition

  • Table 1 and Table 2 list commands supported by single-node, master/standby, and Redis Cluster DCS Redis 6.0 instances.
  • Table 3 and Table 4 list commands supported by Proxy Cluster DCS for Redis 6.0 instances.
  • Table 5 and Table 6 list the Redis commands supported by read/write splitting DCS Redis 6.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.

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

Generic (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

PERSIST

DECRBY

HINCRBYFLOAT

LLEN

SINTERSTORE

ZRANGEBYSCORE

CONFIG GET

PTTL

GET

HKEYS

LPOP

SISMEMBER

ZRANK

MONITOR

RANDOMKEY

GETRANGE

HMGET

LPUSHX

SMEMBERS

ZREMRANGEBYRANK

SLOWLOG

RENAME

GETSET

HMSET

LRANGE

SMOVE

ZREMRANGEBYCORE

ROLE

RENAMENX

INCR

HSET

LREM

SPOP

ZREVRANGE

SWAPDB

RESTORE

INCRBY

HSETNX

LSET

SRANDMEMBER

ZREVRANGEBYSCORE

MEMORY

SORT

INCRBYFLOAT

HVALS

LTRIM

SREM

ZREVRANK

CONFIG

TTL

MGET

HSCAN

RPOP

SUNION

ZSCORE

ACL

TYPE

MSET

HSTRLEN

RPOPLPU

SUNIONSTORE

ZUNIONSTORE

COMMAND

SCAN

MSETNX

HLEN

RPOPLPUSH

SSCAN

ZINTERSTORE

-

OBJECT

PSETEX

-

RPUSH

SMISMEMBER

ZSCAN

-

PEXPIREAT

SET

-

RPUSHX

-

ZRANGEBYLEX

-

PEXPIRE

SETBIT

-

LPUSH

-

ZLEXCOUNT

-

KEYS

SETEX

-

BLMOVE

-

ZPOPMIN

-

COPY

SETNX

-

LMOVE

-

ZPOPMAX

-

-

SETRANGE

-

LPOS

-

ZREMRANGEBYSCORE

-

-

STRLEN

-

-

-

ZREM

-

-

BITFIELD

-

-

-

ZDIFF

-

-

BITFIELD_RO

-

-

-

ZDIFFSTORE

-

-

GETDEL

-

-

-

ZINTER

-

-

GETEX

-

-

-

ZMSCORE

-

-

-

-

-

-

ZRANDMEMBER

-

-

-

-

-

-

ZRANGESTORE

-

-

-

-

-

-

ZUNION

-

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

HyperLoglog

Pub/Sub

Transactions

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 (not supported by Redis Cluster instances)

SCRIPT KILL

GEORADIUS

XGROUP

-

UNSUBSCRIBE

-

CLIENT CACHING

SCRIPT LOAD

GEORADIUSBYMEMBER

XINFO

-

-

-

CLIENT GETREDIR

-

-

XLEN

-

-

-

CLIENT INFO

-

-

XPENDING

-

-

-

CLIENT TRACKING

-

-

XRANGE

-

-

-

CLIENT TRACKINGINFO

-

-

XREAD

-

-

-

CLIENT UNPAUSE

-

-

XREADGROUP

-

-

-

CLIENT KILL

-

-

XREVRANGE

-

-

-

CLIENT LIST

-

-

XTRIM

-

-

-

CLIENT GETNAME

-

-

XAUTOCLAIM

-

-

-

CLIENT SETNAME

-

-

XGROUP CREATECONSUMER

-

-

-

HELLO

-

-

-

-

-

-

RESET

-

-

-

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

Generic (Key)

String

Hash

List

Set

Sorted Set

Server

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

SMISMEMBER

ZSCAN

-

PEXPIREAT

SET

HRANDFIELD

LPUSH

-

ZRANGEBYLEX

-

EXPIREAT

SETBIT

-

BLMOVE

-

ZLEXCOUNT

-

KEYS

SETEX

-

LMOVE

-

ZREMRANGEBYSCORE

-

UNLINK

SETNX

-

LPOS

-

ZREM

-

TOUCH

SETRANGE

-

-

-

ZREMRANGEBYLEX

-

RANDOMKEY

STRLEN

-

-

-

ZPOPMAX

-

COPY

BITFIELD

-

-

-

ZPOPMIN

-

-

GETBIT

-

-

-

BZPOPMAX

-

-

BITFIELD_RO

-

-

-

BZPOPMIN

-

-

GETDEL

-

-

-

ZREVRANGEBYLEX

-

-

GETEX

-

-

-

ZDIFF

-

-

-

-

-

-

ZDIFFSTORE

-

-

-

-

-

-

ZINTER

-

-

-

-

-

-

ZMSCORE

-

-

-

-

-

-

ZRANDMEMBER

-

-

-

-

-

-

ZRANGESTORE

-

-

-

-

-

-

ZUNION

-

Table 4 Commands supported by Proxy Cluster DCS Redis 6.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

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

-

-

-

-

-

-

HELLO

-

-

-

Table 5 Commands supported by read/write splitting DCS Redis 6.0 instances (1)

Generic (Key)

String

Hash

List

Set

Sorted Set

Server

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

HRANDFIELD

RPUSHX

SMISMEMBER

ZSCAN

CONFIG RESETSTAT

PEXPIRE

SET

-

LPUSH

-

ZRANGEBYLEX

CONFIG REWRITE

PEXPIREAT

SETBIT

-

BLMOVE

-

ZLEXCOUNT

CONFIG SET

EXPIREAT

SETEX

-

LMOVE

-

ZREMRANGEBYSCORE

-

KEYS

SETNX

-

LPOS

-

ZREM

-

UNLINK

SETRANGE

-

-

-

ZREMRANGEBYLEX

-

TOUCH

STRLEN

-

-

-

BZPOPMAX

-

COPY

BITFIELD

-

-

-

BZPOPMIN

-

-

GETBIT

-

-

-

ZPOPMAX

-

-

BITFIELD_RO

-

-

-

ZPOPMIN

-

-

GETDEL

-

-

-

ZREVRANGEBYLEX

-

-

GETEX

-

-

-

ZDIFF

-

-

-

-

-

-

ZDIFFSTORE

-

-

-

-

-

-

ZINTER

-

-

-

-

-

-

ZMSCORE

-

-

-

-

-

-

ZRANDMEMBER

-

-

-

-

-

-

ZRANGESTORE

-

-

-

-

-

-

ZUNION

-

Table 6 Commands supported by read/write splitting DCS Redis 6.0 instances (2)

HyperLoglog

Pub/Sub

Transactions

Connection

Scripting

Geo

Stream

PFADD

PSUBSCRIBE

DISCARD

AUTH

EVAL

GEOADD

XAUTOCLAIM

PFCOUNT

PUBLISH

EXEC

ECHO

EVALSHA

GEOHASH

XGROUP CREATECONSUMER

PFMERGE

PUBSUB

MULTI

PING

SCRIPT EXISTS

GEOPOS

XACK

-

PUNSUBSCRIBE

UNWATCH

QUIT

SCRIPT FLUSH

GEODIST

XADD

-

SUBSCRIBE

WATCH

SELECT

SCRIPT KILL

GEORADIUS

XCLAIM

-

UNSUBSCRIBE

-

CLIENT KILL

SCRIPT LOAD

GEORADIUSBYMEMBER

XDEL

-

-

-

CLIENT LIST

SCRIPT DEBUG YES|SYNC|NO

GEOSEARCH

XGROUP

-

-

-

CLIENT GETNAME

-

GEOSEARCHSTORE

XINFO

-

-

-

CLIENT SETNAME

-

-

XLEN

-

-

-

HELLO

-

-

XPENDING

-

-

-

-

-

-

XRANGE

-

-

-

-

-

-

XREAD

-

-

-

-

-

-

XREADGROUP

-

-

-

-

-

-

XREVRANGE

-

-

-

-

-

-

XTRIM

Commands Supported by DCS for Redis 6.0 Professional Edition

The following lists commands supported by DCS for Redis 6.0 professional edition.

Table 7 Commands supported by DCS for Redis 6.0 professional edition (1)

Generic (Key)

String

Hash

List

Set

Sorted Set

Server

COPY

APPEND

HDEL

BLMOVE

SADD

BZPOPMAX

FLUSHALL

DEL

BITCOUNT

HEXISTS

LINDEX

SCARD

BZPOPMIN

FLUSHDB

DUMP

BITOP

HGET

LINSERT

SDIFF

ZADD

DBSIZE

EXISTS

BITPOS

HGETALL

LLEN

SDIFFSTORE

ZCARD

TIME

EXPIRE

BITFIELD

HINCRBY

LPOP

SINTER

ZCOUNT

INFO

MOVE

DECR

HINCRBYFLOAT

LPUSHX

SINTERSTORE

ZDIFF

CLIENT KILL

PERSIST

DECRBY

HKEYS

LRANGE

SISMEMBER

ZDIFFSTORE

CLIENT LIST

PTTL

GET

HMGET

LREM

SMEMBERS

ZINCRBY

CLIENT GETNAME

RANDOMKEY

GETRANGE

HMSET

LSET

SMOVE

ZINTER

CLIENT SETNAME

RENAME

GETSET

HSET

LTRIM

SPOP

ZINTERSTORE

CONFIG GET

RENAMENX

GETDEL

HSETNX

RPOP

SRANDMEMBER

ZLEXCOUNT

MONITOR

SORT

GETEX

HVALS

LMOVE

SREM

ZMSCORE

SLOWLOG

TTL

INCR

HSCAN

RPOPLPUSH

SUNION

ZPOPMAX

ROLE

TYPE

INCRBY

HSTRLEN

RPUSH

SUNIONSTORE

ZPOPMIN

SWAPDB

SCAN

INCRBYFLOAT

HLEN

RPUSHX

SSCAN

ZRANDMEMBER

MEMORY

PEXPIREAT

MGET

HRANDFIELD

LPUSH

SMISMEMBER

ZRANGE

LASTSAVE

PEXPIRE

MSET

-

BLPOP

-

ZRANGEBYLEX

REPLCONF

OBJECT ENCODING

MSETNX

-

BRPOP

-

ZRANGEBYSCORE

LASTSAVE

OBJECT FREQ

PSETEX

-

BRPOPLPUSH

-

ZRANGESTORE

COMMAND

OBJECT IDLETIME

SET

-

LPOS

-

ZRANK

COMMAND COUNT

OBJECT REFCOUNT

SETBIT

-

-

-

ZREM

COMMAND GETKEYS

RESTORE

SETEX

-

-

-

ZREMRANGEBYLEX

COMMAND INFO

TOUCH

SETNX

-

-

-

ZREMRANGEBYRANK

CONFIG

UNLINK

SETRANGE

-

-

-

ZREMRANGEBYSCORE

-

EXPIREAT

STRLEN

-

-

-

ZREVRANGE

-

KEYS

SUBSTR

-

-

-

ZREVRANGEBYLEX

-

WAIT

-

-

-

-

ZREVRANGEBYSCORE

-

-

-

-

-

-

ZREVRANK

-

-

-

-

-

-

ZSCAN

-

-

-

-

-

-

ZSCORE

-

-

-

-

-

-

ZUNION

-

-

-

-

-

-

ZUNIONSTORE

-

Table 8 Commands supported by DCS for Redis 6.0 professional edition (2)

HyperLoglog

Pub/Sub

Connection

Scripting

Geo

Stream

Bitmaps

PFADD

PSUBSCRIBE

AUTH

EVAL

GEOADD

XACK

BITCOUNT

PFCOUNT

PUBLISH

CLIENT CACHING

EVALSHA

GEODIST

XADD

BITFIELD

PFMERGE

PUBSUB

CLIENT GETNAME

SCRIPT DEBUG

GEOHASH

XAUTOCLAIM

BITFIELD_RO

PFSELFTEST

PUNSUBSCRIBE

CLIENT GETREDIR

SCRIPT EXISTS

GEOPOS

XCLAIM

BITOP

-

SUBSCRIBE

CLIENT ID

SCRIPT FLUSH

GEORADIUS

XDEL

BITPOS

-

UNSUBSCRIBE

CLIENT INFO

SCRIPT KILL

GEORADIUSBYMEMBER

XGROUP

GETBIT

-

-

CLIENT KILL

SCRIPT LOAD

GEORADIUSBYMEMBER_RO

XINFO

SETBIT

-

-

CLIENT LIST

-

GEORADIUS_RO

XLEN

-

-

-

CLIENT PAUSE

-

GEOSEARCH

XPENDING

-

-

-

CLIENT REPLY

-

GEOSEARCHSTORE

XRANGE

-

-

-

CLIENT SETNAME

-

-

XREAD

-

-

-

CLIENT TRACKING

-

-

XREADGROUP

-

-

-

CLIENT TRACKINGINFO

-

-

XREVRANGE

-

-

-

CLIENT UNBLOCK

-

-

XSETID

-

-

-

CLIENT UNPAUSE

-

-

XTRIM

-

-

-

ECHO

-

-

-

-

-

-

HELLO

-

-

-

-

-

-

PING

-

-

-

-

-

-

QUIT

-

-

-

-

-

-

RESET

-

-

-

-

-

-

SELECT

-

-

-

-

Commands Disabled by DCS for Redis 6.0

Table 9 Commands disabled in single-node, master/standby, and Redis Cluster DCS Redis 6.0 instances

Generic (Key)

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

Table 10 Redis commands disabled in Proxy Cluster DCS Redis 6.0 instances

Generic (Key)

Server

Connection

MIGRATE

BGREWRITEAOF

CLIENT CACHING

MOVE

BGSAVE

CLIENT GETREDIR

WAIT

CLIENT commands

CLIENT INFO

-

DEBUG OBJECT

CLIENT TRACKING

-

DEBUG SEGFAULT

CLIENT TRACKINGINFO

-

LASTSAVE

CLIENT UNPAUSE

-

PSYNC

RESET

-

SAVE

-

-

SHUTDOWN

-

-

SLAVEOF

-

-

LATENCY commands

-

-

MODULE commands

-

-

LOLWUT

-

-

SWAPDB

-

-

REPLICAOF

-

-

SYNC

-

-

ACL

-

-

FAILOVER

-

Table 11 Redis commands disabled in read/write splitting DCS Redis 6.0 instances

Generic

Server

Connection

MIGRATE

BGREWRITEAOF

CLIENT CACHING

WAIT

BGSAVE

CLIENT GETREDIR

-

DEBUG OBJECT

CLIENT INFO

-

DEBUG SEGFAULT

CLIENT TRACKING

-

LASTSAVE

CLIENT TRACKINGINFO

-

LOLWUT

CLIENT UNPAUSE

-

MODULE LIST/LOAD/UNLOAD

RESET

-

PSYNC

-

-

REPLICAOF

-

-

SAVE

-

-

SHUTDOWN [NOSAVE|SAVE]

-

-

SLAVEOF

-

-

SWAPDB

-

-

SYNC

-

-

ACL

-

-

FAILOVER

-

Table 12 Redis commands disabled in DCS Redis 6.0 professional edition instances

Generic (Key)

Server

HyperLoglog

MIGRATE

SLAVEOF

PFDEBUG

-

SHUTDOWN

-

-

SAVE

-

-

BGSAVE

-

-

BGREWRITEAOF

-

-

SYNC

-

-

PSYNC

-

-

REPLICAOF

-

Commands That Can Be Renamed

Table 13 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.