Help Center/ Distributed Cache Service/ Service Overview/ Command Compatibility/ Commands Supported and Disabled by DCS for Redis 3.0 (Discontinued)
Updated on 2024-05-07 GMT+08:00

Commands Supported and Disabled by DCS for Redis 3.0 (Discontinued)

DCS for Redis 3.0 is developed based on Redis 3.0.7 and is compatible with open-source protocols and commands. This section describes DCS for Redis 3.0's compatibility with Redis commands, including supported commands, disabled commands, unsupported scripts and commands of later Redis versions, and restrictions on command usage.

DCS for Redis 3.0 is no longer provided. You can use DCS for Redis 4.0, 5.0, or 6.0 instead.

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

Commands Supported by DCS for Redis 3.0

The following lists commands supported by DCS for Redis 3.0. 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.
  • The following commands listed in the tables are not supported by Proxy Cluster instances:
    • List group: BLPOP, BRPOP, and BRPOPLRUSH
    • CLIENT commands in the Server group: CLIENT KILL, CLIENT GETNAME, CLIENT LIST, CLIENT SETNAME, CLIENT PAUSE, and CLIENT REPLY.
    • Server group: MONITOR
    • Transactions group: UNWATCH and WATCH
    • Key group: RANDOMKEY (for old instances)
Table 1 Commands supported by DCS Redis 3.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

CLIENT KILL

PTTL

GET

HKEYS

LPOP

SISMEMBER

ZRANK

CLIENT LIST

RANDOMKEY

GETRANGE

HMGET

LPUSHX

SMEMBERS

ZREMRANGEBYRANK

CLIENT GETNAME

RENAME

GETSET

HMSET

LRANGE

SMOVE

ZREMRANGEBYCORE

CLIENT SETNAME

RENAMENX

INCR

HSET

LREM

SPOP

ZREVRANGE

CONFIG GET

RESTORE

INCRBY

HSETNX

LSET

SRANDMEMBER

ZREVRANGEBYSCORE

MONITOR

SORT

INCRBYFLOAT

HVALS

LTRIM

SREM

ZREVRANK

SLOWLOG

TTL

MGET

HSCAN

RPOP

SUNION

ZSCORE

ROLE

TYPE

MSET

-

RPOPLPU

SUNIONSTORE

ZUNIONSTORE

-

SCAN

MSETNX

-

RPOPLPUSH

SSCAN

ZINTERSTORE

-

OBJECT

PSETEX

-

RPUSH

-

ZSCAN

-

KEYS

SET

-

RPUSHX

-

ZRANGEBYLEX

-

-

SETBIT

-

-

-

-

-

-

SETEX

-

-

-

-

-

-

SETNX

-

-

-

-

-

-

SETRANGE

-

-

-

-

-

-

STRLEN

-

-

-

-

-

Table 2 Commands supported by DCS Redis 3.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

SCRIPT KILL

GEORADIUS

-

UNSUBSCRIBE

-

-

SCRIPT LOAD

GEORADIUSBYMEMBER

Commands Disabled by DCS for Redis 3.0

The following lists commands disabled by DCS for Redis 3.0.

Table 3 Redis commands disabled in single-node and master/standby DCS Redis 3.0 instances

Generic (Key)

Server

MIGRATE

SLAVEOF

-

SHUTDOWN

-

LASTSAVE

-

DEBUG commands

-

COMMAND

-

SAVE

-

BGSAVE

-

BGREWRITEAOF

Table 4 Redis commands disabled in Proxy Cluster DCS Redis 3.0 instances

Generic (Key)

Server

List

Transactions

Connection

Cluster

codis

MIGRATE

SLAVEOF

BLPOP

DISCARD

SELECT

CLUSTER

TIME

MOVE

SHUTDOWN

BRPOP

EXEC

-

-

SLOTSINFO

-

LASTSAVE

BRPOPLPUSH

MULTI

-

-

SLOTSDEL

-

DEBUG commands

-

UNWATCH

-

-

SLOTSMGRTSLOT

-

COMMAND

-

WATCH

-

-

SLOTSMGRTONE

-

SAVE

-

-

-

-

SLOTSCHECK

-

BGSAVE

-

-

-

-

SLOTSMGRTTAGSLOT

-

BGREWRITEAOF

-

-

-

-

SLOTSMGRTTAGONE

-

SYNC

-

-

-

-

-

-

PSYNC

-

-

-

-

-

-

MONITOR

-

-

-

-

-

-

CLIENT commands

-

-

-

-

-

-

OBJECT

-

-

-

-

-

-

ROLE

-

-

-

-

-