说明redis 6.0 兼容开源6.2.12版本
redis 7.0 兼容开源7.0.14版本
为便于理解,本文的表格使用下述图标:
- -表示在原生Redis的该版本下,该命令尚未开始支持
- √表示支持该命令
- ×表示不支持该命令
Command Family Command redis6.0 redis 7.0 Bitmap BITCOUNT √ √ BITFIELD √ √ BITFIELD_RO √ √ BITOP √ √ BITPOS √ √ GETBIT √ √ SETBIT √ √ Cluster management Asking √ √ CLUSTER ADDSLOTS √ √ CLUSTER ADDSLOTSRANGE - √ CLUSTER BUMPEPOCH √ √ CLUSTER COUNT-FAILURE-REPORTS √ √ CLUSTER COUNTKEYSINSLOT √ √ CLUSTER DELSLOTS √ √ CLUSTER DELSLOTSRANGE - √ CLUSTER FAILOVER √ √ CLUSTER FLUSHSLOTS √ √ CLUSTER FORGET √ √ CLUSTER GETKEYSINSLOT √ √ CLUSTER INFO √ √ CLUSTER KEYSLOT √ √ CLUSTER LINKS - √ CLUSTER MEET √ √ CLUSTER MYID √ √ CLUSTER MYSHARDID - - CLUSTER NODES √ √ CLUSTER REPLICAS √ √ CLUSTER REPLICATE √ √ CLUSTER RESET √ √ CLUSTER SAVECONFIG √ √ CLUSTER SET-CONFIG-EPOCH √ √ CLUSTER SETSLOT √ √ CLUSTER SHARDS - √ CLUSTER SLAVES √ √ CLUSTER SLOTS √ √ READONLY √ √ READWRITE √ √ Connection AUTH √ √ CLIENT CACHING √ √ CLIENT GETNAME √ √ CLIENT GETREDIR √ √ CLIENT ID √ √ CLIENT INFO √ √ CLIENT KILL √ √ CLIENT LIST √ √ CLIENT NO-EVICT - √ CLIENT NO-TOUCH - - CLIENT PAUSE √ √ CLIENT REPLY √ √ CLIENT SETINFO - - CLIENT SETNAME √ √ CLIENT TRACKING √ √ CLIENT TRACKINGINFO √ √ CLIENT UNBLOCK √ √ CLIENT UNPAUSE √ √ ECHO √ √ HELLO √ √ PING √ √ QUIT √ √ RESET √ √ SELECT √ √ Generic COPY √ √ DEL √ √ DUMP √ √ EXISTS √ √ EXPIRE √ √ EXPIREAT √ √ EXPIRETIME - √ KEYS √ √ MIGRATE √ √ MOVE √ √ OBJECT ENCODING √ √ OBJECT FREQ √ √ OBJECT IDLETIME √ √ OBJECT REFCOUNT √ √ PRESIST √ √ PEXPIRE √ √ PEXPIREAT √ √ PEXPIRETIME - √ PTTL √ √ RANDOMKEY √ √ RENAME √ √ RENAMENX √ √ RESTORE √ √ SCAN √ √ SORT √ √ SORT_RO - √ TOUCH √ √ TTL √ √ TYPE √ √ UNLINK √ √ WAIT √ √ WAITAOF - - Hash HDEL √ √ HEXISTS √ √ HGET √ √ HGETALL √ √ HINCRBY √ √ HINCRBYFLOAT √ √ HKEYS √ √ HLEN √ √ HMGET √ √ HMSET √ √ HRANDFIELD √ √ HSCAN √ √ HSET √ √ HSETNX √ √ HSTRLEN √ √ HVALS √ √ HyperLogLog PFADD √ √ PFMERGE √ √ PFCOUNT √ √ PFDEBUG √ √ PFSELFTEST √ √ List BLMOVE √ √ BLMPOP - √ BLPOP √ √ BRPOP √ √ BRPOPLPUSH √ √ LINDEX √ √ LINSERT √ √ LLEN √ √ LMOVE √ √ LMPOP - √ LPOP √ √ LPOS √ √ LPUSH √ √ LPUSHX √ √ LRANGE √ √ LREM √ √ LSET √ √ LTRIM √ √ RPOP √ √ RPOPLPUSH √ √ RPUSH √ √ RPUSHX √ √ PubSub PSUBSCRIBE √ √ PUBLISH √ √ PUBSUB CHANNELS √ √ PUBSUB NUMPAT √ √ PUBSUB NUMSUB √ √ PUBSUB SHARDCHANNELS - √ PUBSUB SHARDNUMSUB - √ PUNSUBSCRIBE √ √ SPUBLISH - √ SSUBSCRIBE - √ SUBSCRIBE √ √ SUNSUBSCRIBE - √ UNSUBSCRIBE √ √ Scripting EVAL √ √ EVAL_RO - √ EVALSHA √ √ EVALSHA_RO - √ FCALL - √ FCALL_RO - √ FUNCTION DELETE - √ FUNCTION DUMP - √ FUNCTION FLUSH - √ FUNCTION KILL - √ FUNCTION LIST - √ FUNCTION LOAD - √ FUNCTION RESTORE - √ FUNCTION STATS - √ SCRIPT DEBUG √ √ SCRIPT EXISTS √ √ SCRIPT FLUSH √ √ SCRIPT KILL √ √ SCRIPT LOAD √ √ Server ACL CAT √ √ ACL DELUSER √ √ ACL DRYRUN - √ ACL GENPASS √ √ ACL GETUSER √ √ ACL LIST √ √ ACL LOAD √ √ ACL LOG √ √ ACL SAVE √ √ ACL SETUSER √ √ ACL USERS √ √ ACL WHOAMI √ √ BGREWRITEAOF √ √ BGSAVE √ √ COMMAND √ √ COMMAND COUNT √ √ COMMAND DOCS - √ COMMAND GETKEYS √ √ COMMAND GETKEYSANDFLAGS - √ COMMAND INFO √ √ COMMAND LIST - √ CONFIG GET √ √ CONFIG RESETSTAT √ √ CONFIG REWRITE √ √ CONFIG SET √ √ DBSIZE √ √ FAILOVER √ √ FLUSHALL √ √ FLUSHDB √ √ INFO √ √ LASTSAVE √ √ LATENCY DOCTOR √ √ LATENCY GRAPH √ √ LATENCY HISTOGRAM - √ LATENCY HISTORY √ √ LATENCY LATEST √ √ LATENCY RESET √ √ LOLWUT √ √ MEMORY DOCTOR √ √ MEMORY MALLOC-STATS √ √ MEMORY PURGE √ √ MEMORY STATS √ √ MEMORY USAGE √ √ MODULE LIST √ √ MODULE LOAD √ √ MODULE LOADEX - √ MODULE UNLOAD √ √ MONITOR √ √ PSYNC √ √ REPLCONF √ √ REPLICAOF √ √ RESTORE-ASKING √ √ ROLE √ √ SAVE √ √ SHUTDOWN √ √ SLAVEOF √ √ SLOWLOG GET √ √ SLOWLOG LEN √ √ SLOWLOG RESET √ √ SWAPDB √ √ SYNC √ √ TIME √ √ Set SADD √ √ SCARD √ √ SDIFF √ √ SDIFFSTORE √ √ SINTER √ √ SINTERCARD - √ SINTERSTORE √ √ SISMEMBER √ √ SMEMBERS √ √ SMISMEMBER √ √ SMOVE √ √ SPOP √ √ SRANDMEMBER √ √ SREM √ √ SSCAN √ √ SUNION √ √ SUNIONSTORE √ √ Sorted Set BZMPOP - √ BZPOPMAX √ √ BZPOPMIN √ √ ZADD √ √ ZCARD √ √ ZCOUNT √ √ ZDIFF √ √ ZDIFFSTORE √ √ ZINCRBY √ √ ZINTER √ √ ZINTERCARD - √ ZINTERSTORE √ √ ZLEXCOUNT √ √ ZMPOP - √ ZMSCORE √ √ ZPOPMAX √ √ ZPOPMIN √ √ ZRANDMEMBER √ √ ZRANGE √ √ ZRANGEBYLEX √ √ ZRANGEBYSCORE √ √ ZRANGESTORE √ √ ZRANK √ √ ZREM √ √ ZREMRANGEBYLEX √ √ ZREMRANGEBYRANK √ √ ZREMRANGEBYSCORE √ √ ZREVRANGE √ √ ZREVRANGEBYLEX √ √ ZREVRANGEBYSCORE √ √ ZREVRANK √ √ ZSCAN √ √ ZSCORE √ √ ZUNION √ √ ZUNIONSTORE √ √ Stream XACK √ √ XADD √ √ XAUTOCLAIM √ √ XCLAIM √ √ XDEL √ √ XGROUP √ √ XINFO √ √ XLEN √ √ XPENDING √ √ XRANGE √ √ XREAD √ √ XREADGROUP √ √ XREVRANGE √ √ XSETID √ √ XTRIM √ √ String APPEND √ √ DECR √ √ DECRBY √ √ GET √ √ GETDEL √ √ GETEX √ √ GETRANGE √ √ GETSET √ √ INCR √ √ INCRBY √ √ INCRBYFLOAT √ √ LCS - √ MGET √ √ MSET √ √ MSETNX √ √ PSETEX √ √ SET √ √ SETEX √ √ SETNX √ √ SETRANGE √ √ STRLEN √ √ SUBSTR √ √ Transactions DISCARD √ √ EXEC √ √ MULTI √ √ UNWATCH √ √ WATCH √ √