:original_name: dcs-pd-210209002.html .. _dcs-pd-210209002: Redis 6.0 Commands ================== DCS for Redis 6.0 is compatible with Redis 6.2.7 and with open-source protocols and commands. This section describes DCS for Redis 6.0's command compatibility, 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. - For security purposes, some Redis commands are disabled in DCS, as listed in :ref:`Commands Disabled by DCS for Redis 6.0 `. - Some Redis commands (such as **KEYS**, **FLUSHDB**, and **FLUSHALL**) have usage restrictions, which are described in :ref:`Other Command Usage Restrictions `. Commands Supported by DCS for Redis 6.0 --------------------------------------- .. table:: **Table 1** Commands supported by DCS for Redis 6.0 (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 | HSTRLEN | RPOPLPU | SUNIONSTORE | ZUNIONSTORE | SWAPDB | +-------------------------------------------------------+-----------------------------------------------+-------------------------------------------+-------------------------------------------+-----------------------------------------+-------------------------------------------------------+-----------------------------------------------+ | SCAN | MSETNX | HLEN | RPOPLPUSH | SSCAN | ZINTERSTORE | MEMORY | +-------------------------------------------------------+-----------------------------------------------+-------------------------------------------+-------------------------------------------+-----------------------------------------+-------------------------------------------------------+-----------------------------------------------+ | OBJECT | PSETEX | ``-`` | RPUSH | ``-`` | ZSCAN | CONFIG | +-------------------------------------------------------+-----------------------------------------------+-------------------------------------------+-------------------------------------------+-----------------------------------------+-------------------------------------------------------+-----------------------------------------------+ | PEXPIREAT | SET | ``-`` | RPUSHX | ``-`` | ZRANGEBYLEX | ``-`` | +-------------------------------------------------------+-----------------------------------------------+-------------------------------------------+-------------------------------------------+-----------------------------------------+-------------------------------------------------------+-----------------------------------------------+ | PEXPIRE | SETBIT | ``-`` | LPUSH | ``-`` | ZLEXCOUNT | ``-`` | +-------------------------------------------------------+-----------------------------------------------+-------------------------------------------+-------------------------------------------+-----------------------------------------+-------------------------------------------------------+-----------------------------------------------+ | KEYS | SETEX | ``-`` | ``-`` | ``-`` | ZPOPMIN | ``-`` | +-------------------------------------------------------+-----------------------------------------------+-------------------------------------------+-------------------------------------------+-----------------------------------------+-------------------------------------------------------+-----------------------------------------------+ | ``-`` | SETNX | ``-`` | ``-`` | ``-`` | ZPOPMAX | ``-`` | +-------------------------------------------------------+-----------------------------------------------+-------------------------------------------+-------------------------------------------+-----------------------------------------+-------------------------------------------------------+-----------------------------------------------+ | ``-`` | SETRANGE | ``-`` | ``-`` | ``-`` | ZREMRANGEBYSCORE | ``-`` | +-------------------------------------------------------+-----------------------------------------------+-------------------------------------------+-------------------------------------------+-----------------------------------------+-------------------------------------------------------+-----------------------------------------------+ | ``-`` | STRLEN | ``-`` | ``-`` | ``-`` | ZREM | ``-`` | +-------------------------------------------------------+-----------------------------------------------+-------------------------------------------+-------------------------------------------+-----------------------------------------+-------------------------------------------------------+-----------------------------------------------+ | ``-`` | BITFIELD | ``-`` | ``-`` | ``-`` | ``-`` | ``-`` | +-------------------------------------------------------+-----------------------------------------------+-------------------------------------------+-------------------------------------------+-----------------------------------------+-------------------------------------------------------+-----------------------------------------------+ .. table:: **Table 2** Commands supported by DCS for Redis 6.0 (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 | SCRIPT KILL | GEORADIUS | XGROUP | +---------------------------------------------------------+------------------------------------------------+-----------------------------------------------------------+-------------------------------------------------------+-----------------------------------------------------+-----------------------------------------+-----------------------------------------------+ | ``-`` | UNSUBSCRIBE | ``-`` | ``-`` | SCRIPT LOAD | GEORADIUSBYMEMBER | XINFO | +---------------------------------------------------------+------------------------------------------------+-----------------------------------------------------------+-------------------------------------------------------+-----------------------------------------------------+-----------------------------------------+-----------------------------------------------+ | ``-`` | ``-`` | ``-`` | ``-`` | ``-`` | ``-`` | XLEN | +---------------------------------------------------------+------------------------------------------------+-----------------------------------------------------------+-------------------------------------------------------+-----------------------------------------------------+-----------------------------------------+-----------------------------------------------+ | ``-`` | ``-`` | ``-`` | ``-`` | ``-`` | ``-`` | XPENDING | +---------------------------------------------------------+------------------------------------------------+-----------------------------------------------------------+-------------------------------------------------------+-----------------------------------------------------+-----------------------------------------+-----------------------------------------------+ | ``-`` | ``-`` | ``-`` | ``-`` | ``-`` | ``-`` | XRANGE | +---------------------------------------------------------+------------------------------------------------+-----------------------------------------------------------+-------------------------------------------------------+-----------------------------------------------------+-----------------------------------------+-----------------------------------------------+ | ``-`` | ``-`` | ``-`` | ``-`` | ``-`` | ``-`` | XREAD | +---------------------------------------------------------+------------------------------------------------+-----------------------------------------------------------+-------------------------------------------------------+-----------------------------------------------------+-----------------------------------------+-----------------------------------------------+ | ``-`` | ``-`` | ``-`` | ``-`` | ``-`` | ``-`` | XREADGROUP | +---------------------------------------------------------+------------------------------------------------+-----------------------------------------------------------+-------------------------------------------------------+-----------------------------------------------------+-----------------------------------------+-----------------------------------------------+ | ``-`` | ``-`` | ``-`` | ``-`` | ``-`` | ``-`` | XREVRANGE | +---------------------------------------------------------+------------------------------------------------+-----------------------------------------------------------+-------------------------------------------------------+-----------------------------------------------------+-----------------------------------------+-----------------------------------------------+ | ``-`` | ``-`` | ``-`` | ``-`` | ``-`` | ``-`` | XTRIM | +---------------------------------------------------------+------------------------------------------------+-----------------------------------------------------------+-------------------------------------------------------+-----------------------------------------------------+-----------------------------------------+-----------------------------------------------+ .. _dcs-pd-210209002__section1153718441417: Commands Disabled by DCS for Redis 6.0 -------------------------------------- .. table:: **Table 3** Redis commands disabled in DCS Redis 6.0 instances +-------------------------------------------------------+-----------------------------------------------+ | `Generic (Key) `__ | `Server `__ | +=======================================================+===============================================+ | MIGRATE | SLAVEOF | +-------------------------------------------------------+-----------------------------------------------+ | ``-`` | SHUTDOWN | +-------------------------------------------------------+-----------------------------------------------+ | ``-`` | LASTSAVE | +-------------------------------------------------------+-----------------------------------------------+ | ``-`` | DEBUG commands | +-------------------------------------------------------+-----------------------------------------------+ | ``-`` | COMMAND | +-------------------------------------------------------+-----------------------------------------------+ | ``-`` | SAVE | +-------------------------------------------------------+-----------------------------------------------+ | ``-`` | BGSAVE | +-------------------------------------------------------+-----------------------------------------------+ | ``-`` | BGREWRITEAOF | +-------------------------------------------------------+-----------------------------------------------+ | ``-`` | SYNC | +-------------------------------------------------------+-----------------------------------------------+ | ``-`` | PSYNC | +-------------------------------------------------------+-----------------------------------------------+