命令族 | 命令 | 2.8内存版(标准架构) | 4.0内存版(标准架构) | 4.0内存版(集群架构) | 5.0内存版(标准架构) | 5.0内存版(集群架构) | 内存版(集群架构)跨 Slot 支持 |
connection 族 | echo | ✓ | ✓ | ✓ | ✓ | ✓ | - |
| ping | ✓ | ✓ | 自定义 | ✓ | 自定义 | - |
| select | ✓ | ✓ | ✓ | ✓ | ✓ | - |
hash 族 | hdel | ✓ | ✓ | ✓ | ✓ | ✓ | - |
| hexists | ✓ | ✓ | ✓ | ✓ | ✓ | - |
| hget | ✓ | ✓ | ✓ | ✓ | ✓ | - |
| hgetall | ✓ | ✓ | ✓ | ✓ | ✓ | - |
| hincrby | ✓ | ✓ | ✓ | ✓ | ✓ | - |
| hincrbyfloat | ✓ | ✓ | ✓ | ✓ | ✓ | - |
| hkeys | ✓ | ✓ | ✓ | ✓ | ✓ | - |
| hlen | ✓ | ✓ | ✓ | ✓ | ✓ | - |
| hmget | ✓ | ✓ | ✓ | ✓ | ✓ | - |
| hmset | ✓ | ✓ | ✓ | ✓ | ✓ | - |
| hset | ✓ | ✓ | ✓ | ✓ | ✓ | - |
| hsetnx | ✓ | ✓ | ✓ | ✓ | ✓ | - |
| hstrlen | ✓ | ✓ | ✓ | ✓ | ✓ | - |
| hvals | ✓ | ✓ | ✓ | ✓ | ✓ | - |
| hscan | ✓ | ✓ | ✓ | ✓ | ✓ | - |
keys 族 | del | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| scan | ✓ | ✓ | 自定义 | ✓ | 自定义 | - |
| exists | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| expire | ✓ | ✓ | ✓ | ✓ | ✓ | - |
| expireat | ✓ | ✓ | ✓ | ✓ | ✓ | - |
| type | ✓ | ✓ | ✓ | ✓ | ✓ | - |
| ttl | ✓ | ✓ | ✓ | ✓ | ✓ | - |
| persist | ✓ | ✓ | ✓ | ✓ | ✓ | - |
| pexpire | ✓ | ✓ | ✓ | ✓ | ✓ | - |
| pexpireat | ✓ | ✓ | ✓ | ✓ | ✓ | - |
| pttl | ✓ | ✓ | ✓ | ✓ | ✓ | - |
| randomkey | ✓ | ✓ | ✓ | ✓ | ✓ | - |
| rename | ✓ | ✓ | ✓ | ✓ | ✓ | x |
| renamenx | ✓ | ✓ | ✓ | ✓ | ✓ | x |
| touch | ✓ | ✓ | ✓ | ✓ | ✓ | - |
| restore | ✓ | ✓ | ✓ | ✓ | ✓ | - |
| unlink | x | ✓ | ✓ | ✓ | ✓ | x |
| move | ✓ | ✓ | ✓ | ✓ | ✓ | - |
| dump | ✓ | ✓ | ✓ | ✓ | ✓ | - |
list 族 | lindex | ✓ | ✓ | ✓ | ✓ | ✓ | - |
| linsert | ✓ | ✓ | ✓ | ✓ | ✓ | - |
| llen | ✓ | ✓ | ✓ | ✓ | ✓ | - |
| lpop | ✓ | ✓ | ✓ | ✓ | ✓ | - |
| lpush | ✓ | ✓ | ✓ | ✓ | ✓ | - |
| lpushx | ✓ | ✓ | ✓ | ✓ | ✓ | - |
| lrange | ✓ | ✓ | ✓ | ✓ | ✓ | - |
| lrem | ✓ | ✓ | ✓ | ✓ | ✓ | - |
| lset | ✓ | ✓ | ✓ | ✓ | ✓ | - |
| ltrim | ✓ | ✓ | ✓ | ✓ | ✓ | - |
| rpop | ✓ | ✓ | ✓ | ✓ | ✓ | - |
| rpoplpush | ✓ | ✓ | ✓ | ✓ | ✓ | x |
| rpush | ✓ | ✓ | ✓ | ✓ | ✓ | - |
| rpushx | ✓ | ✓ | ✓ | ✓ | ✓ | - |
| blpop | ✓ | ✓ | ✓ | ✓ | ✓ | x |
| brpop | ✓ | ✓ | ✓ | ✓ | ✓ | x |
| brpoplpush | ✓ | ✓ | ✓ | ✓ | ✓ | x |
sets 族 | sadd | ✓ | ✓ | ✓ | ✓ | ✓ | - |
| scard | ✓ | ✓ | ✓ | ✓ | ✓ | - |
| sdiff | ✓ | ✓ | ✓ | ✓ | ✓ | x |
| sdiffstore | ✓ | ✓ | ✓ | ✓ | ✓ | x |
| sinter | ✓ | ✓ | ✓ | ✓ | ✓ | x |
| sinterstore | ✓ | ✓ | ✓ | ✓ | ✓ | x |
| sismember | ✓ | ✓ | ✓ | ✓ | ✓ | - |
| smembers | ✓ | ✓ | ✓ | ✓ | ✓ | - |
| smove | ✓ | ✓ | ✓ | ✓ | ✓ | x |
| spop | ✓ | ✓ | ✓ | ✓ | ✓ | - |
| srandmember | ✓ | ✓ | ✓ | ✓ | ✓ | - |
| srem | ✓ | ✓ | ✓ | ✓ | ✓ | - |
| sscan | ✓ | ✓ | ✓ | ✓ | ✓ | - |
| sunion | ✓ | ✓ | ✓ | ✓ | ✓ | x |
| sunionstore | ✓ | ✓ | ✓ | ✓ | ✓ | x |
sorted sets 族 | 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 族 | 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 | ✓ | ✓ | ✓ | ✓ | - |
hyperloglog 族 | pfadd | ✓ | ✓ | ✓ | ✓ | ✓ | - |
| pfcount | ✓ | ✓ | ✓ | ✓ | ✓ | x |
| pfmerge | ✓ | ✓ | ✓ | ✓ | ✓ | x |
server 族 | client list | ✓ | ✓ | ✓ | ✓ | ✓ | - |
| client getname | ✓ | ✓ | ✓ | ✓ | ✓ | - |
| client setname | ✓ | ✓ | ✓ | ✓ | ✓ | - |
| dbsize | ✓ | ✓ | ✓ | ✓ | ✓ | - |
| info | ✓ | ✓ | 自定义 | ✓ | 自定义 | - |
| time | ✓ | ✓ | ✓ | ✓ | ✓ | - |
| lastsave | ✓ | ✓ | ✓ | ✓ | ✓ | - |
| slowlog | ✓ | ✓ | 自定义 | ✓ | 自定义 | - |
| cluster keyslot | x | x | ✓ | x | ✓ | - |
| cluster nodes | x | x | ✓ | x | ✓ | - |
| cluster slots | x | x | ✓ | x | ✓ | - |
| cluster info | x | x | ✓ | x | ✓ | - |
| lolwut | x | x | x | ✓ | ✓ | - |
本页内容是否解决了您的问题?