Command Compatibility

Last updated: 2019-09-09 11:36:49

PDF

The command compatibility of each edition is as described in the following table:

Command Type Command 2.8 Standard Edition 4.0 Standard Edition 4.0 Cluster Edition 4.0 Cluster Edition Cross-Slot Support
connection type auth -
echo -
ping 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 -
exists x
expire -
expireat -
keys 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 -
rpush -
rpushx -
blpop x
brpop x
brpoplpush -
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 -
sorted sets type zadd -
zcard -
zcount -
zincrby -
zinterstore -
zlexcount -
zrange -
zrangebylex -
zrangebyscore -
zrank -
zrem -
zremrangebylex -
zremrangebyrank -
zremrangebyscore -
zrevrange -
zrevrangebylex -
zrevrangebyscore -
zscore -
zrevrank -
zscan -
zunionstore -
strings type append -
bitcount -
bitop -
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 -
evalsha -
script debug -
script exists -
script flush -
script load -
script kill -
geo type geoadd x -
geohash x -
geopos x -
geodist x -
georadius x -
georadiusbymember x -
keys type touch x x x -
restore x x x -
object x x x -
unlink x x
wait x x x -
migrate x x x -
dump -
server type bgrewriteaof x x x -
bgsave x x x -
client kill x x x -
sync x x x -
psync x x x -
clieny list -
client getname x x x -
client pause x x x -
client reply x x x -
client setname x x x -
command count x x x -
command getkeys x x x -
command info x x x -
slaveof x x x -
config rewrite x x x -
config set x x x -
config resetstat x x x -
debug object x x x -
debug segfault x x x -
role x x x -
save x x x -
lastsave x x x -
shutdown x x x -
MEMORY x Custom -
command -
dbsize -
info Custom -
time -
client list -
config get -
monitor Custom -
flushdb Custom -
flushall -
slowlog Custom -
cluster keyslot x x -
cluster nodes x x -
cluster getkeysinslot x x -
cluster (others) x x x -
module x x x -