分布式缓存服务 DCS-Redis 6.0支持及禁用的命令:Redis 6.0基础版支持的命令

时间:2024-12-16 19:16:38

Redis 6.0基础版支持的命令

  • 表1表2列举了Redis 6.0单机/主备/Cluster集群实例支持的命令。
  • 表3表4列举了Redis 6.0 Proxy集群支持的命令。
  • 表5表6列举了Redis 6.0读写分离支持的命令。

各个命令的具体详细语法请前往Redis官方网站查看,例如您想了解SCAN命令的使用,可在Redis官方网站中搜索框中输入“SCAN”查询详细介绍。

表1 Redis 6.0单机/主备/Cluster集群实例支持命令清单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

SLOW LOG

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

-

表2 Redis 6.0单机/主备/Cluster集群实例支持命令清单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(Cluster集群实例不支持)

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

-

-

-

表3 Redis 6.0 Proxy集群支持的命令清单1

Generic (Key)

String

Hash

List

Set

Sorted Set

Server

DEL

APPEND

HDEL

BLPOP

SADD

ZADD

FLUSHALL

(不支持FLUSHALL SYNC)

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

-

表4 Redis 6.0 Proxy集群支持的命令清单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

-

-

-

表5 Redis 6.0读写分离支持的命令清单1

Generic (Key)

String

Hash

List

Set

Sorted Set

Server

DEL

APPEND

HDEL

BLPOP

SADD

ZADD

FLUSHALL

(不支持FLUSHALL SYNC)

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

-

表6 Redis 6.0读写分离支持的命令清单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

support.huaweicloud.com/productdesc-dcs/dcs-pd-210209002.html