云服务器内容精选
-
Redis 5.0禁用的命令 以下列出了Redis 5.0实例禁用的命令。 表7 Redis 5.0单机和主备禁用命令 Generic (Key) Server MIGRATE SLAVEOF - SHUTDOWN - LASTSAVE - DEBUG相关类 - SAVE - BGSAVE - BGREWRITEAOF - SYNC - PSYNC 表8 Redis 5.0 Proxy集群实例禁用命令 Generic (Key) Server MIGRATE BGREWRITEAOF MOVE BGSAVE WAIT CLIENT相关命令 - DEBUG OBJECT - DEBUG SEGFAULT - LASTSAVE - PSYNC - SAVE - SHUTDOWN - SLAVEOF - LATENCY相关命令 - MODULE相关命令 - LOLWUT - SWAPDB - REPLICAOF - SYNC 表9 Redis 5.0 Cluster集群禁用命令 Generic (Key) Server Cluster MIGRATE SLAVEOF CLUSTER MEET - SHUTDOWN CLUSTER FLUSHSLOTS - LASTSAVE CLUSTER ADDSLOTS - DEBUG相关类 CLUSTER DELSLOTS - SAVE CLUSTER SETSLOT - BGSAVE CLUSTER BUMPEPOCH - BGREWRITEAOF CLUSTER SAVECONFIG - SYNC CLUSTER FORGET - PSYNC CLUSTER REPLICATE - - CLUSTER COUNT-FAILURE-REPORTS - - CLUSTER FAILOVER - - CLUSTER SET-CONFIG-EPOCH - - CLUSTER RESET 表10 Redis 5.0读写分离禁用命令 Generic Server MIGRATE BGREWRITEAOF WAIT BGSAVE - DEBUG OBJECT - DEBUG SEGFAULT - LASTSAVE - LOLWUT - MODULE LIST/LOAD/UNLOAD - PSYNC - REPLICAOF - SAVE - SHUTDOWN [NOSAVE|SAVE] - SLAVEOF - SWAPDB - SYNC
-
Redis 5.0支持的命令 表1和表2列举了Redis 5.0单机/主备/Cluster集群实例支持的命令。 表3和表4列举了Redis 5.0 proxy集群支持的命令。 表5和表6列举了Redis 5.0读写分离支持的命令。 各个命令的具体详细语法请前往Redis官方网站查看,例如您想了解SCAN命令的使用,可在Redis官方网站中搜索框中输入“SCAN”查询详细介绍。 Redis高版本的命令,在低版本中不被兼容。判断D CS Redis是否支持某个命令,可通过在Redis-cli执行该命令,如果得到(error)ERR unknown command ‘xxx’的提示,则说明不支持该命令。 Redis 5.0 Cluster版本集群实例使用pipeline时,要确保管道中的命令都能在同一分片执行。 表1 Redis 5.0 单机/主备/Cluster集群实例支持的命令清单1 Generic (Key) String Hash List Set Sorted Set Server DEL APPEND HDEL BLPOP SADD ZADD FLUSHALL DUMP BITCOUNT HEXISTS BRPOP SCARD ZCARD FLUSHDB EXISTS BITOP HGET BRPOPLRUSH SDIFF ZCOUNT DBSIZE EXPIRE BITPOS HGETALL LINDEX SDIFFSTORE ZINCRBY TIME MOVE DECR HINCRBY LINSERT SINTER ZRANGE INFO PERSIST DECRBY HINCRBYFLOAT LLEN SINTERSTORE ZRANGEBYSCORE KEYS PTTL GET HKEYS LPOP SISMEMBER ZRANK CLIENT KILL RANDOMKEY GETRANGE HMGET LPUSHX SMEMBERS ZREMRANGEBYRANK CLIENT LIST RENAME GETSET HMSET LRANGE SMOVE ZREMRANGEBYCORE CLIENT GETNAME RENAMENX INCR HSET LREM SPOP ZREVRANGE CLIENT SETNAME RESTORE INCRBY HSETNX LSET SRANDMEMBER ZREVRANGEBYSCORE CONFIG GET SORT INCRBYFLOAT HVALS LTRIM SREM ZREVRANK MONITOR TTL MGET HSCAN RPOP SUNION ZSCORE SLOW LOG TYPE MSET HSTRLEN RPOPLPU SUNIONSTORE ZUNIONSTORE ROLE SCAN MSETNX HLEN RPOPLPUSH SSCAN ZINTERSTORE SWAPDB OBJECT PSETEX - RPUSH - ZSCAN MEMORY PEXPIREAT SET - RPUSHX - ZRANGEBYLEX CONFIG PEXPIRE SETBIT - LPUSH - ZLEXCOUNT COMMAND KEYS SETEX - - - ZPOPMIN - - SETNX - - - ZPOPMAX - - SETRANGE - - - ZREMRANGEBYSCORE - - STRLEN - - - ZREM - - BITFIELD - - - - - 表2 Redis 5.0 单机/主备/Cluster集群实例支持的命令清单2 HyperLoglog Pub/Sub Transactions Connection Scripting Geo Stream PFADD PSUBSCRIBE DISCARD AUTH EVAL GEOADD XACK PFCOUNT PUBLISH EXEC ECHO EVALSHA GEOHASH XADD PFMERGE PUBSUB MULTI PING SCRIPT EXISTS GEOPOS XCLAIM - PUNSUBSCRIBE UNWATCH QUIT SCRIPT FLUSH GEODIST XDEL - SUBSCRIBE WATCH SELECT(Cluster集群实例不支持) SCRIPT KILL GEORADIUS XGROUP - UNSUBSCRIBE - - SCRIPT LOAD GEORADIUSBYMEMBER XINFO - - - - - - XLEN - - - - - - XPENDING - - - - - - XRANGE - - - - - - XREAD - - - - - - XREADGROUP - - - - - - XREVRANGE - - - - - - XTRIM 表3 Redis 5.0 proxy集群支持的命令清单1 Generic (Key) String Hash List Set Sorted Set Server DEL APPEND HDEL BLPOP SADD ZADD FLUSHALL (不支持FLUSHALL SYNC) DUMP BITCOUNT HEXISTS BRPOP SCARD ZCARD FLUSHDB EXISTS BITOP HGET BRPOPLRUSH SDIFF ZCOUNT DBSIZE EXPIRE BITPOS HGETALL LINDEX SDIFFSTORE ZINCRBY TIME MOVE DECR HINCRBY LINSERT SINTER ZRANGE INFO PERSIST DECRBY HINCRBYFLOAT LLEN SINTERSTORE ZRANGEBYSCORE ROLE PTTL GET HKEYS LPOP SISMEMBER ZRANK MEMORY RENAME GETRANGE HMGET LPUSHX SMEMBERS ZREMRANGEBYRANK COMMAND RENAMENX GETSET HMSET LRANGE SMOVE ZREMRANGEBYCORE COMMAND COUNT RESTORE INCR HSET LREM SPOP ZREVRANGE COMMAND GETKEYS SORT INCRBY HSETNX LSET SRANDMEMBER ZREVRANGEBYSCORE COMMAND INFO TTL INCRBYFLOAT HVALS LTRIM SREM ZREVRANK CONFIG GET TYPE MGET HSCAN RPOP SUNION ZSCORE CONFIG RESETSTAT SCAN MSET HSTRLEN RPOPLPUSH SUNIONSTORE ZUNIONSTORE CONFIG REWRITE OBJECT MSETNX HLEN RPUSH SSCAN ZINTERSTORE CONFIG SET PEXPIRE PSETEX HKEYS RPUSHX - ZSCAN - PEXPIREAT SET - LPUSH - ZRANGEBYLEX - EXPIREAT SETBIT - - - ZLEXCOUNT - KEYS SETEX - - - ZREMRANGEBYSCORE - UNLINK SETNX - - - ZREM - TOUCH SETRANGE - - - ZREMRANGEBYLEX - RANDOMKEY STRLEN - - - ZPOPMAX - - BITFIELD - - - ZPOPMIN - - GETBIT - - - BZPOPMAX - - - - - - BZPOPMIN - - - - - - ZREVRANGEBYLEX - 表4 Redis 5.0 proxy集群支持的命令清单2 HyperLoglog Pub/Sub Transactions Connection Scripting Geo Cluster PFADD PSUBSCRIBE DISCARD AUTH EVAL GEOADD CLUSTER INFO PFCOUNT PUBLISH EXEC ECHO EVALSHA GEOHASH CLUSTER NODES PFMERGE PUBSUB MULTI PING SCRIPT EXISTS GEOPOS CLUSTER SLOTS - PUNSUBSCRIBE UNWATCH QUIT SCRIPT FLUSH GEODIST CLUSTER ADDSLOTS - SUBSCRIBE WATCH SELECT SCRIPT KILL GEORADIUS ASKING - UNSUBSCRIBE - CLIENT KILL SCRIPT LOAD GEORADIUSBYMEMBER READONLY - - - CLIENT LIST SCRIPT DEBUG YES|SYNC|NO GEOSEARCH READWRITE - - - CLIENT GETNAME - GEOSEARCHSTORE - - - - CLIENT SETNAME - - - 上表中的Cluster类命令,仅2022/9/1日及之后创建的proxy集群实例支持。 表5 Redis 5.0读写分离支持的命令清单1 Generic (Key) String Hash List Set Sorted Set Server DEL APPEND HDEL BLPOP SADD ZADD FLUSHALL (不支持FLUSHALL SYNC) DUMP BITCOUNT HEXISTS BRPOP SCARD ZCARD FLUSHDB EXISTS BITOP HGET BRPOPLRUSH SDIFF ZCOUNT DBSIZE EXPIRE BITPOS HGETALL LINDEX SDIFFSTORE ZINCRBY TIME MOVE DECR HINCRBY LINSERT SINTER ZRANGE INFO PERSIST DECRBY HINCRBYFLOAT LLEN SINTERSTORE ZRANGEBYSCORE MONITOR PTTL GET HKEYS LPOP SISMEMBER ZRANK SLOWLOG RANDOMKEY GETRANGE HMGET LPUSHX SMEMBERS ZREMRANGEBYRANK ROLE RENAME GETSET HMSET LRANGE SMOVE ZREMRANGEBYCORE SWAPDB RENAMENX INCR HSET LREM SPOP ZREVRANGE MEMORY RESTORE INCRBY HSETNX LSET SRANDMEMBER ZREVRANGEBYSCORE COMMAND SORT INCRBYFLOAT HVALS LTRIM SREM ZREVRANK COMMAND COUNT TTL MGET HSCAN RPOP SUNION ZSCORE COMMAND GETKEYS TYPE MSET HSTRLEN RPOPLPUSH SUNIONSTORE ZUNIONSTORE COMMAND INFO SCAN MSETNX HLEN RPUSH SSCAN ZINTERSTORE CONFIG GET OBJECT PSETEX - RPUSHX - ZSCAN CONFIG RESETSTAT PEXPIRE SET - LPUSH - ZRANGEBYLEX CONFIG REWRITE PEXPIREAT SETBIT - - - ZLEXCOUNT CONFIG SET EXPIREAT SETEX - - - ZREMRANGEBYSCORE - KEYS SETNX - - - ZREM - UNLINK SETRANGE - - - ZREMRANGEBYLEX - TOUCH STRLEN - - - BZPOPMAX - - BITFIELD - - - BZPOPMIN - - GETBIT - - - ZPOPMAX - - - - - - ZPOPMIN - - - - - - ZREVRANGEBYLEX - 表6 Redis 5.0读写分离支持的命令清单2 HyperLoglog Pub/Sub Transactions Connection Scripting Geo Stream PFADD PSUBSCRIBE DISCARD AUTH EVAL GEOADD XACK PFCOUNT PUBLISH EXEC ECHO EVALSHA GEOHASH XADD PFMERGE PUBSUB MULTI PING SCRIPT EXISTS GEOPOS XCLAIM - PUNSUBSCRIBE UNWATCH QUIT SCRIPT FLUSH GEODIST XDEL - SUBSCRIBE WATCH SELECT SCRIPT KILL GEORADIUS XGROUP - UNSUBSCRIBE - CLIENT KILL SCRIPT LOAD GEORADIUSBYMEMBER XINFO - - - CLIENT LIST SCRIPT DEBUG YES|SYNC|NO GEOSEARCH XLEN - - - CLIENT GETNAME - GEOSEARCHSTORE XPENDING - - - CLIENT SETNAME - - XRANGE - - - - - - XREAD - - - - - - XREADGROUP - - - - - - XREVRANGE - - - - - - XTRIM
-
Redis 6.0禁用的命令 表5 Redis 6.0基础版实例的禁用命令 Generic (Key) Server Cluster MIGRATE SLAVEOF CLUSTER MEET - SHUTDOWN CLUSTER FLUSHSLOTS - LASTSAVE CLUSTER ADDSLOTS - DEBUG相关类 CLUSTER DELSLOTS - SAVE CLUSTER SETSLOT - BGSAVE CLUSTER BUMPEPOCH - BGREWRITEAOF CLUSTER SAVECONFIG - SYNC CLUSTER FORGET - PSYNC CLUSTER REPLICATE - - CLUSTER COUNT-FAILURE-REPORTS - - CLUSTER FAILOVER - - CLUSTER SET-CONFIG-EPOCH - - CLUSTER RESET 表6 Redis 6.0企业版实例的禁用命令 Generic (Key) Server HyperLoglog MIGRATE SLAVEOF PFDEBUG - SHUTDOWN - - SAVE - - BGSAVE - - BGREWRITEAOF - - SYNC - - PSYNC - - REPLICAOF -
-
Redis 6.0企业版支持的命令 以下列出了Redis 6.0企业版实例支持的命令。 表3 Redis 6.0 企业版实例支持命令清单1 Generic (Key) String Hash List Set Sorted Set Server COPY APPEND HDEL BLMOVE SADD BZPOPMAX FLUSHALL DEL BITCOUNT HEXISTS LINDEX SCARD BZPOPMIN FLUSHDB DUMP BITOP HGET LINSERT SDIFF ZADD DBSIZE EXISTS BITPOS HGETALL LLEN SDIFFSTORE ZCARD TIME EXPIRE BITFIELD HINCRBY LPOP SINTER ZCOUNT INFO MOVE DECR HINCRBYFLOAT LPUSHX SINTERSTORE ZDIFF CLIENT KILL PERSIST DECRBY HKEYS LRANGE SISMEMBER ZDIFFSTORE CLIENT LIST PTTL GET HMGET LREM SMEMBERS ZINCRBY CLIENT GETNAME RANDOMKEY GETRANGE HMSET LSET SMOVE ZINTER CLIENT SETNAME RENAME GETSET HSET LTRIM SPOP ZINTERSTORE CONFIG GET RENAMENX GETDEL HSETNX RPOP SRANDMEMBER ZLEXCOUNT MONITOR SORT GETEX HVALS LMOVE SREM ZMSCORE SLOWLOG TTL INCR HSCAN RPOPLPUSH SUNION ZPOPMAX ROLE TYPE INCRBY HSTRLEN RPUSH SUNIONSTORE ZPOPMIN SWAPDB SCAN INCRBYFLOAT HLEN RPUSHX SSCAN ZRANDMEMBER MEMORY PEXPIREAT MGET HRANDFIELD LPUSH SMISMEMBER ZRANGE LASTSAVE PEXPIRE MSET - BLPOP - ZRANGEBYLEX REPLCONF OBJECT ENCODING MSETNX - BRPOP - ZRANGEBYSCORE LASTSAVE OBJECT FREQ PSETEX - BRPOPLPUSH - ZRANGESTORE COMMAND OBJECT IDLETIME SET - LPOS - ZRANK COMMAND COUNT OBJECT REFCOUNT SETBIT - - - ZREM COMMAND GETKEYS RESTORE SETEX - - - ZREMRANGEBYLEX COMMAND INFO TOUCH SETNX - - - ZREMRANGEBYRANK CONFIG UNLINK SETRANGE - - - ZREMRANGEBYSCORE - EXPIREAT STRLEN - - - ZREVRANGE - KEYS SUBSTR - - - ZREVRANGEBYLEX - WAIT - - - - ZREVRANGEBYSCORE - - - - - - ZREVRANK - - - - - - ZSCAN - - - - - - ZSCORE - - - - - - ZUNION - - - - - - ZUNIONSTORE - 表4 Redis 6.0 企业版实例支持命令清单2 HyperLoglog Pub/Sub Connection Scripting Geo Stream Bitmaps PFADD PSUBSCRIBE AUTH EVAL GEOADD XACK BITCOUNT PFCOUNT PUBLISH CLIENT CACHING EVALSHA GEODIST XADD BITFIELD PFMERGE PUBSUB CLIENT GETNAME SCRIPT DEBUG GEOHASH XAUTOCLAIM BITFIELD_RO PFSELFTEST PUNSUBSCRIBE CLIENT GETREDIR SCRIPT EXISTS GEOPOS XCLAIM BITOP - SUBSCRIBE CLIENT ID SCRIPT FLUSH GEORADIUS XDEL BITPOS - UNSUBSCRIBE CLIENT INFO SCRIPT KILL GEORADIUSBYMEMBER XGROUP GETBIT - - CLIENT KILL SCRIPT LOAD GEORADIUSBYMEMBER_RO XINFO SETBIT - - CLIENT LIST - GEORADIUS_RO XLEN - - - CLIENT PAUSE - GEOSEARCH XPENDING - - - CLIENT REPLY - GEOSEARCHSTORE XRANGE - - - CLIENT SETNAME - - XREAD - - - CLIENT TRACKING - - XREADGROUP - - - CLIENT TRACKINGINFO - - XREVRANGE - - - CLIENT UNBLOCK - - XSETID - - - CLIENT UNPAUSE - - XTRIM - - - ECHO - - - - - - HELLO - - - - - - PING - - - - - - QUIT - - - - - - RESET - - - - - - SELECT - - - -
-
Redis 6.0基础版支持的命令 表1 Redis 6.0单机/主备/Cluster集群实例支持命令清单1 Generic (Key) String Hash List Set Sorted Set Server DEL APPEND HDEL BLPOP SADD ZADD FLUSHALL DUMP BITCOUNT HEXISTS BRPOP SCARD ZCARD FLUSHDB EXISTS BITOP HGET BRPOPLRUSH SDIFF ZCOUNT DBSIZE EXPIRE BITPOS HGETALL LINDEX SDIFFSTORE ZINCRBY TIME MOVE DECR HINCRBY LINSERT SINTER ZRANGE INFO PERSIST DECRBY HINCRBYFLOAT LLEN SINTERSTORE ZRANGEBYSCORE CONFIG GET PTTL GET HKEYS LPOP SISMEMBER ZRANK MONITOR RANDOMKEY GETRANGE HMGET LPUSHX SMEMBERS ZREMRANGEBYRANK SLOWLOG RENAME GETSET HMSET LRANGE SMOVE ZREMRANGEBYCORE ROLE RENAMENX INCR HSET LREM SPOP ZREVRANGE SWAPDB RESTORE INCRBY HSETNX LSET SRANDMEMBER ZREVRANGEBYSCORE MEMORY SORT INCRBYFLOAT HVALS LTRIM SREM ZREVRANK CONFIG TTL MGET HSCAN RPOP SUNION ZSCORE ACL TYPE MSET HSTRLEN RPOPLPU SUNIONSTORE ZUNIONSTORE COMMAND SCAN MSETNX HLEN RPOPLPUSH SSCAN ZINTERSTORE - OBJECT PSETEX - RPUSH SMISMEMBER ZSCAN - PEXPIREAT SET - RPUSHX - ZRANGEBYLEX - PEXPIRE SETBIT - LPUSH - ZLEXCOUNT - KEYS SETEX - BLMOVE - ZPOPMIN - COPY SETNX - LMOVE - ZPOPMAX - - SETRANGE - LPOS - ZREMRANGEBYSCORE - - STRLEN - - - ZREM - - BITFIELD - - - ZDIFF - - BITFIELD_RO - - - ZDIFFSTORE - - GETDEL - - - ZINTER - - GETEX - - - ZMSCORE - - - - - - ZRANDMEMBER - - - - - - ZRANGESTORE - - - - - - ZUNION - 表2 Redis 6.0单机/主备/Cluster集群实例支持命令清单2 HyperLoglog Pub/Sub Transactions Connection Scripting Geo Stream PFADD PSUBSCRIBE DISCARD AUTH EVAL GEOADD XACK PFCOUNT PUBLISH EXEC ECHO EVALSHA GEOHASH XADD PFMERGE PUBSUB MULTI PING SCRIPT EXISTS GEOPOS XCLAIM - PUNSUBSCRIBE UNWATCH QUIT SCRIPT FLUSH GEODIST XDEL - SUBSCRIBE WATCH SELECT(Cluster集群实例不支持) SCRIPT KILL GEORADIUS XGROUP - UNSUBSCRIBE - CLIENT CACHING SCRIPT LOAD GEORADIUSBYMEMBER XINFO - - - CLIENT GETREDIR - - XLEN - - - CLIENT INFO - - XPENDING - - - CLIENT TRACKING - - XRANGE - - - CLIENT TRACKINGINFO - - XREAD - - - CLIENT UNPAUSE - - XREADGROUP - - - CLIENT KILL - - XREVRANGE - - - CLIENT LIST - - XTRIM - - - CLIENT GETNAME - - XAUTOCLAIM - - - CLIENT SETNAME - - XGROUP CREATECONSUMER - - - HELLO - - - - - - RESET - - -
-
Proxy集群多Key命令说明 表3 Proxy集群多Key命令说明 类型 命令 支持跨slot的多Key命令 DEL、MGET、MSET、EXISTS、SUNION、SINTER、SDIFF、SUNIONSTORE、SINTERSTORE、SDIFFSTORE、ZUNIONSTORE、ZINTERSTORE 不支持跨slot的多Key命令 SMOVE、SORT、BITOP、MSETNX、RENAME、RENAMENX、BLPOP、BRPOP、RPOPLPUSH、BRPOPLPUSH、PFMERGE、PFCOUNT、BLMOVE、COPY、GEOSEARCHSTORE、LMOVE、ZRANGESTORE
-
Cluster集群实例受限使用的Redis命令 表1 Cluster集群实例受限使用的Redis命令 命令类型 命令描述 Set(集合) SINTER 返回一个集合的全部成员,该集合是所有给定集合的交集 SINTERSTORE 类似SINTER,但结果保存到destination集合 SUNION 返回一个集合的全部成员,该集合是所有给定集合的并集 SUNIONSTORE 和SUNION类似,但它将结果保存到destination集合 SDIFF 返回一个集合的全部成员,该集合是所有给定集合之间的差集 SDIFFSTORE 和SDIFF类似,但它将结果保存到destination集合 SMOVE 将member元素从source集合移动到destination集合 SortedSet(有序集合) ZUNIONSTORE 计算给定的一个或多个有序集的并集 ZINTERSTORE 计算给定的一个或多个有序集的交集 HyperLogLog PFCOUNT 返回储存在给定键(或多个键)的HyperLogLog的近似基数 PFMERGE 将多个HyperLogLog合并(merge)为一个HyperLogLog Keys(键) RENAME 将key改名 RENAMENX 将key改名,新key必须是之前不存在的 BITOP 对一个或多个保存二进制位的字符串key进行位元操作,并将结果保存到destkey上 RPOPLPUSH 返回并移除存储在source的列表的最后一个元素(列表尾部元素), 并把该元素放入存储在destination的列表的第一个元素位置(列表头部) String(字符串) MSETNX 同时设置一个或多个key-value对
-
Redis 3.0禁用的命令 以下列出了Redis 3.0实例禁用的命令。 表3 Redis 3.0单机和主备实例禁用命令 Generic (Key) Server MIGRATE SLAVEOF - SHUTDOWN - LASTSAVE - DEBUG相关类 - COMMAND - SAVE - BGSAVE - BGREWRITEAOF 表4 Redis 3.0 Proxy集群实例禁用命令 Generic (Key) Server List Transactions Connection Cluster codis相关 MIGRATE SLAVEOF BLPOP DISCARD SELECT CLUSTER TIME MOVE SHUTDOWN BRPOP EXEC - - SLOTSINFO - LASTSAVE BRPOPLPUSH MULTI - - SLOTSDEL - DEBUG相关类 - UNWATCH - - SLOTSMGRTSLOT - COMMAND - WATCH - - SLOTSMGRTONE - SAVE - - - - SLOTSCHECK - BGSAVE - - - - SLOTSMGRTTAGSLOT - BGREWRITEAOF - - - - SLOTSMGRTTAGONE - SYNC - - - - - - PSYNC - - - - - - MONITOR - - - - - - CLIENT相关类 - - - - - - OBJECT - - - - - - ROLE - - - - -
-
Redis 3.0支持的命令 以下列出了Redis 3.0实例支持的命令。各个命令的具体详细语法请前往Redis官方网站(中文网站为:http://www.redis.cn/commands.html)查看,例如您想了解SCAN命令的使用,可在Redis官方网站中搜索框中输入“SCAN”查询详细介绍。 Redis高版本的命令,在低版本中不被兼容。判断DCS Redis是否支持某个命令,可通过在Redis-cli执行该命令,如果得到(error)ERR unknown command ‘xxx’的提示,则说明不支持该命令。 如果是Proxy集群实例,不支持表格中以下命令: “List”类型中的BLPOP、BRPOP、BRPOPLRUSH命令。 “Server”类型的CLIENT相关命令,包括CLIENT KILL、CLIENT GETNAME、CLIENT LIST、CLIENT SETNAME、CLIENT PAUSE、CLIENT REPLY。 “Server”类型的MONITOR命令。 “Transaction”类型的UNWATCH、WATCH命令。 如果是比较旧的集群实例,不支持“Key”类型中的RANDOMKEY命令。 表1 Redis 3.0 支持命令清单1 Generic (Key) String Hash List Set Sorted Set Server DEL APPEND HDEL BLPOP SADD ZADD FLUSHALL DUMP BITCOUNT HEXISTS BRPOP SCARD ZCARD FLUSHDB EXISTS BITOP HGET BRPOPLRUSH SDIFF ZCOUNT DBSIZE EXPIRE BITPOS HGETALL LINDEX SDIFFSTORE ZINCRBY TIME MOVE DECR HINCRBY LINSERT SINTER ZRANGE INFO PERSIST DECRBY HINCRBYFLOAT LLEN SINTERSTORE ZRANGEBYSCORE CLIENT KILL PTTL GET HKEYS LPOP SISMEMBER ZRANK CLIENT LIST RANDOMKEY GETRANGE HMGET LPUSHX SMEMBERS ZREMRANGEBYRANK CLIENT GETNAME RENAME GETSET HMSET LRANGE SMOVE ZREMRANGEBYCORE CLIENT SETNAME RENAMENX INCR HSET LREM SPOP ZREVRANGE CONFIG GET RESTORE INCRBY HSETNX LSET SRANDMEMBER ZREVRANGEBYSCORE MONITOR SORT INCRBYFLOAT HVALS LTRIM SREM ZREVRANK SLOWLOG TTL MGET HSCAN RPOP SUNION ZSCORE ROLE TYPE MSET - RPOPLPU SUNIONSTORE ZUNIONSTORE - SCAN MSETNX - RPOPLPUSH SSCAN ZINTERSTORE - OBJECT PSETEX - RPUSH - ZSCAN - KEYS SET - RPUSHX - ZRANGEBYLEX - - SETBIT - - - - - - SETEX - - - - - - SETNX - - - - - - SETRANGE - - - - - - STRLEN - - - - - 表2 Redis 3.0 支持命令清单2 HyperLoglog Pub/Sub Transactions Connection Scripting Geo PFADD PSUBSCRIBE DISCARD AUTH EVAL GEOADD PFCOUNT PUBLISH EXEC ECHO EVALSHA GEOHASH PFMERGE PUBSUB MULTI PING SCRIPT EXISTS GEOPOS - PUNSUBSCRIBE UNWATCH QUIT SCRIPT FLUSH GEODIST - SUBSCRIBE WATCH SELECT SCRIPT KILL GEORADIUS - UNSUBSCRIBE - - SCRIPT LOAD GEORADIUSBYMEMBER
更多精彩内容
CDN加速
GaussDB
文字转换成语音
免费的服务器
如何创建网站
域名网站购买
私有云桌面
云主机哪个好
域名怎么备案
手机云电脑
SSL证书申请
云点播服务器
免费OCR是什么
电脑云桌面
域名备案怎么弄
语音转文字
文字图片识别
云桌面是什么
网址安全检测
网站建设搭建
国外CDN加速
SSL免费证书申请
短信批量发送
图片OCR识别
云数据库MySQL
个人域名购买
录音转文字
扫描图片识别文字
OCR图片识别
行驶证识别
虚拟电话号码
电话呼叫中心软件
怎么制作一个网站
Email注册网站
华为VNC
图像文字识别
企业网站制作
个人网站搭建
华为云计算
免费租用云托管
云桌面云服务器
ocr文字识别免费版
HTTPS证书申请
图片文字识别转换
国外域名注册商
使用免费虚拟主机
云电脑主机多少钱
鲲鹏云手机
短信验证码平台
OCR图片文字识别
SSL证书是什么
申请企业邮箱步骤
免费的企业用邮箱
云免流搭建教程
域名价格