Command Compatibility

Last updated: 2020-05-15 10:25:50

    Command Compatibility of Different Editions

    In the following table, ✓ indicates "supported", x indicates "not supported", and - indicates that cross-slot access is not applicable to the command. For custom command descriptions, please see Custom Command. For more information on the command compatibility of the Cluster Edition, please see Command Compatibility Description and Command Table Download Address.

    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 x
    renamenx x
    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 x
    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 -
    client 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 -
    Stream 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 -

    Was this page helpful?

    Was this page helpful?

    • Not at all
    • Not very helpful
    • Somewhat helpful
    • Very helpful
    • Extremely helpful
    Send Feedback
    Help