本章节主要介绍DCS管理控制台Web CLI工具的命令兼容性,列举支持和禁用的命令列表,命令的具体详细语法,请前往Redis官方网站(网站为:http://www.redis.cn/commands.html)查看。
当前仅Redis 4.0及以上版本支持Web CLI功能。
说明
当前在Web CLI下所有命令参数暂不支持中文且key和value不支持空格
当value值为空时,执行get命令返回nil。
Web CLI支持的命令
以下列出了通过Web CLI连接Redis实例时支持的命令。
表 Web CLI支持命令清单
Keys | String | List | Set | Sorted Set | Server |
---|---|---|---|---|---|
DEL | APPEND | RPUSH | SADD | ZADD | FLUSHALL |
OBJECT | BITCOUNT | RPUSHX | SCARD | ZCARD | FLUSHDB |
EXISTS | BITOP | BRPOPLRUSH | SDIFF | ZCOUNT | DBSIZE |
EXPIRE | BITPOS | LINDEX | SDIFFSTORE | ZINCRBY | TIME |
MOVE | DECR | LINSERT | SINTER | ZRANGE | INFO |
PERSIST | DECRBY | LLEN | SINTERSTORE | ZRANGEBYSCORE | CLIENT KILL |
PTTL | GET | LPOP | SISMEMBER | ZRANK | CLIENT LIST |
RANDOMKEY | GETRANGE | LPUSHX | SMEMBERS | ZREMRANGEBYRANK | CLIENT GETNAME |
RENAME | GETSET | LRANGE | SMOVE | ZREMRANGEBYCORE | CLIENT SETNAME |
RENAMENX | INCR | LREM | SPOP | ZREVRANGE | CONFIG GET |
SCAN | INCRBY | LSET | SRANDMEMBER | ZREVRANGEBYSCORE | SLOWLOG |
SORT | INCRBYFLOAT | LTRIM | SREM | ZREVRANK | ROLE |
TTL | MGET | RPOP | SUNION | ZSCORE | SWAPDB |
TYPE | MSET | RPOPLPU | SUNIONSTORE | ZUNIONSTORE | MEMORY |
- | MSETNX | RPOPLPUSH | SSCAN | ZINTERSTORE | - |
- | PSETEX | - | - | ZSCAN | - |
- | SET | - | - | ZRANGEBYLEX | - |
- | SETBIT | - | - | ZLEXCOUNT | - |
- | SETEX | - | - | - | - |
- | SETNX | - | - | - | - |
- | SETRANGE | - | - | - | - |
- | STRLEN | - | - | - | - |
- | BITFIELD | - | - | - | - |
表 Web CLI支持命令清单
Hash | HyperLoglog | Connection | Scripting | Geo | Pub/Sub |
---|---|---|---|---|---|
HDEL | PFADD | AUTH | EVAL | GEOADD | UNSUBSCRIBE |
HEXISTS | PFCOUNT | ECHO | EVALSHA | GEOHASH | PUBLISH |
HGET | PFMERGE | PING | SCRIPT EXISTS | GEOPOS | PUBSUB |
HGETALL | - | QUIT | SCRIPT FLUSH | GEODIST | PUNSUBSCRIBE |
HINCRBY | - | - | SCRIPT KILL | GEORADIUS | - |
HINCRBYFLOAT | - | - | SCRIPT LOAD | GEORADIUSBYMEMBER | - |
HKEYS | - | - | - | - | - |
HMGET | - | - | - | - | - |
HMSET | - | - | - | - | - |
HSET | - | - | - | - | - |
HSETNX | - | - | - | - | - |
HVALS | - | - | - | - | - |
HSCAN | - | - | - | - | - |
HSTRLEN | - | - | - | - | - |
Web CLI禁用的命令
以下列出了通过Web CLI连接Redis实例时禁用的命令。
表 通过Web CLI禁用的命令
Keys | Server | Transactions | Cluster |
---|---|---|---|
MIGRATE | SLAVEOF | UNWATCH | CLUSTER MEET |
WAIT | SHUTDOWN | REPLICAOF | CLUSTER FLUSHSLOTS |
DUMP | DEBUG相关类 | DISCARD | CLUSTER ADDSLOTS |
RESTORE | CONFIG SET | EXEC | CLUSTER DELSLOTS |
- | CONFIG REWRITE | MULTI | CLUSTER SETSLOT |
- | CONFIG RESETSTAT | WATCH | CLUSTER BUMPEPOCH |
- | SAVE | - | CLUSTER SAVECONFIG |
- | BGSAVE | - | CLUSTER FORGET |
- | BGREWRITEAOF | - | CLUSTER REPLICATE |
- | COMMAND | - | CLUSTER COUNT-FAILURE-REPORTS |
- | KEYS | - | CLUSTER FAILOVER |
- | MONITOR | - | CLUSTER SET-CONFIG-EPOCH |
- | SYNC | - | CLUSTER RESET |
- | PSYNC | - | - |
- | ACL | - | - |
- | MODULE | - | - |
表 通过Web CLI禁用的命令
List | Connection | Sorted Set | Pub/Sub |
---|---|---|---|
BLPOP | SELECT | BZPOPMAX | PSUBSCRIBE |
BRPOP | - | BZPOPMIN | SUBSCRIBE |
BLMOVE | - | BZMPOP | - |
BRPOPLPUSH | - | - | - |
BLMPOP | - | - | - |