有奖捉虫:云通信与企业服务文档专题,速来> HOT
Redis 2.8版本标准架构、Redis 4.0、5.0、6.2标准架构与集群架构均支持 client list、client getname、client setname、command count、command info、config rewrite、config resetstat、role、lastsave、command、dbsize、info、time、config get、flushdb、flushall 命令。
Redis 2.8版本标准架构、Redis 4.0、5.0、6.2标准架构与集群架构均不支持 bgrewriteaof、bgsave、client kill、sync、psync、client pause、client reply、slaveof、config set、debug object、debug segfault、save、shutdown、module、acl cat、acl deluser、 acl genpass、acl getuser、acl help、acl list、acl load、acl log、acl save、acl setuser、acl users、acl whoami、failover 等命令。
Redis 2.8版本标准架构不支持 bgrewriteaof、bgsave、client kill、sync、psync、client pause、client reply、slaveof、config set、debug object、debug segfault、save、shutdown、command getkeys、memory、module、lolwut、cluster keyslot、cluster nodes、cluster getkeysinslot、cluster slots、cluster info、cluster countkeysinslot、cluster 其他命令
MEMORY 与 slowlog 命令仅支持4.0、5.0、6.2 标准架构,不支持集群架构。
cluster keyslot、cluster nodes、cluster getkeysinslot、cluster slots、cluster info、cluster countkeysinslot 均支持 Redis 4.0、5.0、6.2版本集群架构,不支持标准架构。cluster 其他命令都不支持。
lolwut 命令在 Redis 5.0及以上版本的标准架构与集群架构才支持。
monitor 命令在 Redis 6.2版本暂停支持,在6.2 之前版本支持。
具体信息,请参见下表。✓ 表示支持,x 表示不支持,- 表示该命令不存在跨 Slot 访问的场景。
命令
2.8 内存版(标准架构)
4.0 内存版(标准架构)
4.0 内存版(集群架构)
5.0 内存版(标准架构)
5.0 内存版(集群架构)
6.2 内存版(标准架构)
6.2 内存版(集群架构)
内存版(集群架构)跨 Slot 支持
bgrewriteaof
x
x
x
x
x
x
x
-
bgsave
x
x
x
x
x
x
x
-
client kill
x
x
x
x
x
x
x
-
sync
x
x
x
x
x
x
x
-
psync
x
x
x
x
x
x
x
-
client list
-
client getname
-
client pause
x
x
x
x
x
x
x
-
client reply
x
x
x
x
x
x
x
-
client setname
-
command count
-
command getkeys
x
-
command info
-
slaveof
x
x
x
x
x
x
x
-
config rewrite
-
config set
x
x
x
x
x
x
x
-
config resetstat
-
debug object
x
x
x
x
x
x
x
-
debug segfault
x
x
x
x
x
x
x
-
role
-
save
x
x
x
x
x
x
x
-
lastsave
-
shutdown
x
x
x
x
x
x
x
-
memory
x
x
x
x
-
command
-
dbsize
-
info
-
time
-
config get
-
monitor
x
x
-
flushdb
-
flushall
-
slowlog
x
x
x
-
cluster keyslot
x
x
x
x
-
cluster nodes
x
x
x
x
-
cluster getkeysinslot
x
x
x
x
-
cluster slots
x
x
x
x
-
cluster info
x
x
x
x
-
cluster countkeysinslot
x
x
x
x
-
cluster 其他
x
x
x
x
x
x
x
-
module
x
x
x
x
x
x
x
-
lolwut
x
x
x
-
acl cat
x
x
x
x
x
x
x
-
acl deluser
x
x
x
x
x
x
x
-
acl genpass
x
x
x
x
x
x
x
-
acl help
x
x
x
x
x
x
x
-
acl list
x
x
x
x
x
x
x
-
acl load
x
x
x
x
x
x
x
-
acl log
x
x
x
x
x
x
x
-
acl save
x
x
x
x
x
x
x
-
acl setuser
x
x
x
x
x
x
x
-
acl users
x
x
x
x
x
x
x
-
acl whoami
x
x
x
x
x
x
x
-
failover
x
x
x
x
x
x
x
-
slowlog help
x
x
x
x
x
x
x
-