Command Compatibility

Last updated: 2020-02-26 16:20:10

PDF

Compatibility list of various versions of commands

In the following table, "supports" and "x" indicates no support.-indicates that there is no scene across Slot Access for the command. For a description of the custom command, see Custom command For a description of the compatibility of the cluster version of commands, see Command compatibility description.

Command Type Command 2.8 Standard Edition 4.0 Standard Edition 4.0 Cluster Edition 5.0 Standard Edition 5.0 Cluster Edition Cluster Edition Cross-Slot Support
connection type auth -
echo -
ping Custom Custom -
quit -
select -
swapdb x -
hash type hdel -
hexists -
hget -
hgetall -
hincrby -
hincrbyfloat -
hkeys -
hlen -
hmget -
hmset -
hset -
hsetnx -
hstrlen -
hvals -
hscan -
keys type del
scan Custom Custom -
exists x
expire -
expireat -
keys Custom Custom -
type -
move -
ttl -
persist -
pexpire -
pexpireat -
pttl -
randomkey -
rename -
renamenx -
sort -
list type lindex -
linsert -
llen -
lpop -
lpush -
lpushx -
lrange -
lrem -
lset -
ltrim -
rpop -
rpoplpush x
rpush -
rpushx -
blpop x
brpop x
brpoplpush x
pub/sub type psubscribe -
pubsub -
publish -
punsubscribe -
subscribe -
unsubscribe -
sets type sadd -
scard -
sdiff x
sdiffstore x
sinter x
sinterstore x
sismember -
smembers -
smove -
spop -
srandmember -
srem -
sscan -
sunion x
sunionstore x
sorted sets type zadd -
zcard -
zcount -
zincrby -
zinterstore x
zlexcount -
zrange -
zrangebylex -
zrangebyscore -
zrank -
zrem -
zremrangebylex -
zremrangebyrank -
zremrangebyscore -
zrevrange -
zrevrangebylex -
zrevrangebyscore -
zscore -
zrevrank -
zscan -
zunionstore x
zpopmax x x x -
zpopmin x x x -
bzpopmax x x x -
bzpopmin x x x -
strings type append -
bitcount -
bitop x
bitpos -
decr -
decrby -
get -
getbit -
getrange -
getset -
incr -
incrby -
incrbyfloat -
mget
mset
msetnx x
psetex -
setex -
set -
setbit -
setnx -
setrange -
strlen -
bitfield x -
transactions type discard -
exec -
multi -
unwatch -
watch -
hyperloglog type pfadd -
pfcount x
pfmerge x
scripting type eval x
evalsha x
script debug -
script exists x
script flush -
script load -
script kill -
geo type geoadd x -
geohash x -
geopos x -
geodist x -
georadius x -
georadiusbymember x -
keys type touch -
restore -
object x x x x x -
unlink x x
wait x x x x x -
migrate x x x x x -
dump -
server type bgrewriteaof x x x x x -
bgsave x x x x x -
client kill x x x x x -
sync x x x x x -
psync x x x x x -
clieny list -
client getname x x x x x -
client pause x x x x x -
client reply x x x x x -
client setname x x x x x -
command count x x x x x -
command getkeys x x x x x -
command info x x x x x -
slaveof x x x x x -
config rewrite x x x x x -
config set x x x x x -
config resetstat x x x x x -
debug object x x x x x -
debug segfault x x x x x -
role x x x x x -
save x x x x x -
lastsave x x x x x -
shutdown x x x x x -
MEMORY x Custom Custom -
command -
dbsize -
info Custom Custom -
time -
client list -
config get -
monitor Custom Custom -
flushdb Custom Custom -
flushall -
slowlog Custom Custom -
cluster keyslot x x x -
cluster nodes x x x -
cluster getkeysinslot x x x -
cluster (others) x x x x x -
module x x x x x -
lolwut x x x -
strings type xinfo x x x -
xadd x x x -
xtrim x x x -
xdel x x x -
xrange x x x -
xrevrange x x x -
xlen x x x -
xread x x x x
xgroup x x x -
xreadgroup x x x x
xack x x x -
xlclaim x x x -
xpending x x x -
a