各版本命令兼容性列表
下表中 ✓ 表示支持,x 表示不支持,- 表示该命令不存在跨 Slot 访问的场景:
自定义命令说明,请参见 自定义命令。
命令族 | 命令 | 存储版 | 混合存储版 | 集群架构跨 Slot 支持 |
---|---|---|---|---|
connection 族 | auth | ✓ | ✓ | - |
connection 族 | echo | ✓ | ✓ | - |
connection 族 | ping | 自定义 | 自定义 | - |
connection 族 | quit | ✓ | ✓ | - |
connection 族 | select | ✓ | ✓ | - |
connection 族 | swapdb | x | ✓ | - |
hash 族 | hdel | ✓ | ✓ | - |
hash 族 | hexists | ✓ | ✓ | - |
hash 族 | hget | ✓ | ✓ | - |
hash 族 | hgetall | ✓ | ✓ | - |
hash 族 | hincrby | ✓ | ✓ | - |
hash 族 | hincrbyfloat | ✓ | ✓ | - |
hash 族 | hkeys | ✓ | ✓ | - |
hash 族 | hlen | ✓ | ✓ | - |
hash 族 | hmget | ✓ | ✓ | - |
hash 族 | hmset | ✓ | ✓ | - |
hash 族 | hset | ✓ | ✓ | - |
hash 族 | hsetnx | ✓ | ✓ | - |
hash 族 | hstrlen | ✓ | ✓ | - |
hash 族 | hvals | ✓ | ✓ | - |
hash 族 | hscan | x | x | x |
keys 族 | del | ✓ | ✓ | ✓ |
keys 族 | scan | x | x | x |
keys 族 | exists | ✓ | ✓ | x |
keys 族 | expire | ✓ | ✓ | - |
keys 族 | expireat | ✓ | ✓ | - |
keys 族 | keys | 自定义 | 自定义 | - |
keys 族 | type | ✓ | ✓ | - |
keys 族 | move | ✓ | ✓ | - |
keys 族 | ttl | ✓ | ✓ | - |
keys 族 | persist | ✓ | ✓ | - |
keys 族 | pexpire | ✓ | ✓ | - |
keys 族 | pexpireat | ✓ | ✓ | - |
keys 族 | pttl | ✓ | ✓ | - |
keys 族 | randomkey | x | ✓ | - |
keys 族 | rename | ✓ | ✓ | x |
keys 族 | renamenx | ✓ | ✓ | x |
keys 族 | sort | ✓ | ✓ | - |
keys 族 | touch | x | ✓ | - |
keys 族 | restore | ✓ | ✓ | - |
keys 族 | object | x | x | - |
keys 族 | unlink | ✓ | ✓ | x |
keys 族 | wait | x | x | - |
keys 族 | migrate | x | x | - |
keys 族 | dump | ✓ | ✓ | - |
list 族 | lindex | ✓ | ✓ | - |
list 族 | linsert | ✓ | ✓ | - |
list 族 | llen | ✓ | ✓ | - |
list 族 | lpop | ✓ | ✓ | - |
list 族 | lpush | ✓ | ✓ | - |
list 族 | lpushx | ✓ | ✓ | - |
list 族 | lrange | ✓ | ✓ | - |
list 族 | lrem | ✓ | ✓ | - |
list 族 | lset | ✓ | ✓ | - |
list 族 | ltrim | ✓ | ✓ | - |
list 族 | rpop | ✓ | ✓ | - |
list 族 | rpoplpush | ✓ | ✓ | x |
list 族 | rpush | ✓ | ✓ | - |
list 族 | rpushx | ✓ | ✓ | - |
list 族 | blpop | x | ✓ | x |
list 族 | brpop | x | ✓ | x |
list 族 | brpoplpush | x | ✓ | x |
pub/sub 族 | psubscribe | ✓ | ✓ | - |
pub/sub 族 | pubsub | ✓ | ✓ | - |
pub/sub 族 | publish | ✓ | ✓ | - |
pub/sub 族 | punsubscribe | ✓ | ✓ | - |
pub/sub 族 | subscribe | ✓ | ✓ | - |
pub/sub 族 | unsubscribe | ✓ | ✓ | - |
sets 族 | sadd | ✓ | ✓ | - |
sets 族 | scard | ✓ | ✓ | - |
sets 族 | sdiff | ✓ | ✓ | x |
sets 族 | sdiffstore | ✓ | ✓ | x |
sets 族 | sinter | ✓ | ✓ | x |
sets 族 | sinterstore | ✓ | ✓ | x |
sets 族 | sismember | ✓ | ✓ | - |
sets 族 | smembers | ✓ | ✓ | - |
sets 族 | smove | ✓ | ✓ | x |
sets 族 | spop | ✓ | ✓ | - |
sets 族 | srandmember | ✓ | ✓ | - |
sets 族 | srem | ✓ | ✓ | - |
sets 族 | sscan | x | x | x |
sets 族 | sunion | ✓ | ✓ | x |
sets 族 | sunionstore | ✓ | ✓ | x |
sorted sets 族 | zadd | ✓ | ✓ | - |
sorted sets 族 | zcard | ✓ | ✓ | - |
sorted sets 族 | zcount | ✓ | ✓ | - |
sorted sets 族 | zincrby | ✓ | ✓ | - |
sorted sets 族 | zinterstore | ✓ | ✓ | x |
sorted sets 族 | zlexcount | ✓ | ✓ | - |
sorted sets 族 | zrange | ✓ | ✓ | - |
sorted sets 族 | zrangebylex | ✓ | ✓ | - |
sorted sets 族 | zrangebyscore | ✓ | ✓ | - |
sorted sets 族 | zrank | ✓ | ✓ | - |
sorted sets 族 | zrem | ✓ | ✓ | - |
sorted sets 族 | zremrangebylex | ✓ | ✓ | - |
sorted sets 族 | zremrangebyrank | ✓ | ✓ | - |
sorted sets 族 | zremrangebyscore | ✓ | ✓ | - |
sorted sets 族 | zrevrange | ✓ | ✓ | - |
sorted sets 族 | zrevrangebylex | ✓ | ✓ | - |
sorted sets 族 | zrevrangebyscore | ✓ | ✓ | - |
sorted sets 族 | zscore | ✓ | ✓ | - |
sorted sets 族 | zrevrank | ✓ | ✓ | - |
sorted sets 族 | zscan | x | x | x |
sorted sets 族 | zunionstore | ✓ | ✓ | x |
sorted sets 族 | zpopmax | x | x | - |
sorted sets 族 | zpopmin | x | x | - |
sorted sets 族 | bzpopmax | x | x | - |
sorted sets 族 | bzpopmin | x | x | - |
strings 族 | append | ✓ | ✓ | - |
strings 族 | bitcount | ✓ | ✓ | - |
strings 族 | bitop | ✓ | ✓ | x |
strings 族 | bitpos | ✓ | ✓ | - |
strings 族 | decr | ✓ | ✓ | - |
strings 族 | decrby | ✓ | ✓ | - |
strings 族 | get | ✓ | ✓ | - |
strings 族 | getbit | ✓ | ✓ | - |
strings 族 | getrange | ✓ | ✓ | - |
strings 族 | getset | ✓ | ✓ | - |
strings 族 | incr | ✓ | ✓ | - |
strings 族 | incrby | ✓ | ✓ | - |
strings 族 | incrbyfloat | ✓ | ✓ | - |
strings 族 | mget | ✓ | ✓ | ✓ |
strings 族 | mset | ✓ | ✓ | ✓ |
strings 族 | msetnx | ✓ | ✓ | x |
strings 族 | psetex | ✓ | ✓ | - |
strings 族 | setex | ✓ | ✓ | - |
strings 族 | set | ✓ | ✓ | - |
strings 族 | setbit | ✓ | ✓ | - |
strings 族 | setnx | ✓ | ✓ | - |
strings 族 | setrange | ✓ | ✓ | - |
strings 族 | strlen | ✓ | ✓ | - |
strings 族 | bitfield | ✓ | ✓ | - |
transactions 族 | discard | ✓ | ✓ | - |
transactions 族 | exec | ✓ | ✓ | - |
transactions 族 | multi | ✓ | ✓ | - |
transactions 族 | unwatch | ✓ | ✓ | - |
transactions 族 | watch | ✓ | ✓ | - |
hyperloglog 族 | pfadd | ✓ | ✓ | - |
hyperloglog 族 | pfcount | ✓ | ✓ | x |
hyperloglog 族 | pfmerge | ✓ | ✓ | x |
scripting 族 | eval | ✓ | ✓ | x |
scripting 族 | evalsha | ✓ | ✓ | x |
scripting 族 | script debug | ✓ | ✓ | - |
scripting 族 | script exists | ✓ | ✓ | x |
scripting 族 | script flush | ✓ | ✓ | - |
scripting 族 | script load | ✓ | ✓ | - |
scripting 族 | script kill | ✓ | ✓ | - |
geo 族 | geoadd | x | ✓ | - |
geo 族 | geohash | x | ✓ | - |
geo 族 | geopos | x | ✓ | - |
geo 族 | geodist | x | ✓ | - |
geo 族 | georadius | x | ✓ | - |
geo 族 | georadiusbymember | x | ✓ | - |
server 族 | bgrewriteaof | x | x | - |
server 族 | bgsave | x | x | - |
server 族 | client kill | x | x | - |
server 族 | sync | x | x | - |
server 族 | psync | x | x | - |
server 族 | client list | ✓ | ✓ | - |
server 族 | client getname | x | x | - |
server 族 | client pause | x | x | - |
server 族 | client reply | x | x | - |
server 族 | client setname | x | x | - |
server 族 | command count | x | x | - |
server 族 | command getkeys | x | x | - |
server 族 | command info | x | x | - |
server 族 | slaveof | x | x | - |
server 族 | config rewrite | x | x | - |
server 族 | config set | x | x | - |
server 族 | config resetstat | x | x | - |
server 族 | debug object | x | x | - |
server 族 | debug segfault | x | x | - |
server 族 | role | x | x | - |
server 族 | save | x | x | - |
server 族 | lastsave | x | x | - |
server 族 | shutdown | x | x | - |
server 族 | MEMORY | x | 自定义 | - |
server 族 | command | ✓ | ✓ | - |
server 族 | dbsize | ✓ | ✓ | - |
server 族 | info | 自定义 | 自定义 | - |
server 族 | time | ✓ | ✓ | - |
server 族 | client list | ✓ | ✓ | - |
server 族 | config get | ✓ | ✓ | - |
server 族 | monitor | 自定义 | 自定义 | - |
server 族 | flushdb | 自定义 | 自定义 | - |
server 族 | flushall | ✓ | ✓ | - |
server 族 | slowlog | 自定义 | 自定义 | - |
server 族 | cluster keyslot | ✓ | ✓ | - |
server 族 | cluster nodes | ✓ | ✓ | - |
server 族 | cluster getkeysinslot | ✓ | ✓ | - |
server 族 | cluster 其他 | x | x | - |
server 族 | module | x | x | - |
server 族 | lolwut | x | x | - |
Stream 族 | xinfo | x | x | - |
Stream 族 | xadd | x | x | - |
Stream 族 | xtrim | x | x | - |
Stream 族 | xdel | x | x | - |
Stream 族 | xrange | x | x | - |
Stream 族 | xrevrange | x | x | - |
Stream 族 | xlen | x | x | - |
Stream 族 | xread | x | x | x |
Stream 族 | xgroup | x | x | - |
Stream 族 | xreadgroup | x | x | x |
Stream 族 | xack | x | x | - |
Stream 族 | xlclaim | x | x | - |
Stream 族 | xpending | x | x | - |