更新时间:2022-04-20 GMT+08:00
分享

Web CLI命令

本章节主要介绍DCS管理控制台Web CLI工具的命令兼容性,列举支持和禁用的命令列表。当前仅Redis 4.0、Redis 5.0和Redis 6.0版本支持Web CLI功能。

  • 当前在Web CLI下所有命令参数暂不支持中文且key和value不支持空格。
  • 当value值为空时,执行get命令返回nil。

Web CLI支持的命令

以下列出了通过Web CLI连接Redis实例时支持的命令。各个命令的具体详细语法请前往Redis官方网站(中文网站为:http://www.redis.cn/commands.html)查看,例如您想了解SCAN命令的使用,可在Redis官方网站中搜索框中输入“SCAN”查询详细介绍。

表1 Web CLI支持命令清单1

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

MONITOR

SORT

INCRBYFLOAT

LTRIM

SREM

ZREVRANK

SLOWLOG

TTL

MGET

RPOP

SUNION

ZSCORE

ROLE

TYPE

MSET

RPOPLPU

SUNIONSTORE

ZUNIONSTORE

SWAPDB

-

MSETNX

RPOPLPUSH

SSCAN

ZINTERSTORE

MEMORY

-

PSETEX

-

SPOP

ZSCAN

-

-

SET

-

-

ZRANGEBYLEX

-

-

SETBIT

-

-

ZLEXCOUNT

-

-

SETEX

-

-

-

-

-

SETNX

-

-

-

-

-

SETRANGE

-

-

-

-

-

STRLEN

-

-

-

-

-

BITFIELD

-

-

-

-

表2 Web CLI支持命令清单2

Hash

HyperLoglog

Connection

Scripting

Geo

HDEL

PFADD

AUTH

EVAL

GEOADD

HEXISTS

PFCOUNT

ECHO

EVALSHA

GEOHASH

HGET

PFMERGE

PING

SCRIPT EXISTS

GEOPOS

HGETALL

-

QUIT

SCRIPT FLUSH

GEODIST

HINCRBY

-

-

SCRIPT KILL

GEORADIUS

HINCRBYFLOAT

-

-

SCRIPT LOAD

GEORADIUSBYMEMBER

HKEYS

-

-

-

-

HMGET

-

-

-

-

HMSET

-

-

-

-

HSET

-

-

-

-

HSETNX

-

-

-

-

HVALS

-

-

-

-

HSCAN

-

-

-

-

HSTRLEN

-

-

-

-

Web CLI禁用的命令

以下列出了通过Web CLI连接Redis实例时禁用的命令。

表3 通过Web CLI连接单机和主备实例时禁用的命令清单1

Keys

Server

Transactions

Pub/Sub

MIGRATE

SLAVEOF

UNWATCH

PSUBSCRIBE

WAIT

SHUTDOWN

REPLICAOF

PUBLISH

DUMP

DEBUG相关类

DISCARD

PUBSUB

RESTORE

CONFIG SET

EXEC

PUNSUBSCRIBE

-

CONFIG REWRITE

MULTI

SUBSCRIBE

-

CONFIG RESETSTAT

WATCH

UNSUBSCRIBE

-

SAVE

-

-

-

BGSAVE

-

-

-

BGREWRITEAOF

-

-

-

COMMAND

-

-

-

KEYS

-

-

-

MONITOR

-

-

-

SYNC

-

-

-

PSYNC

-

-

-

ACL

-

-

表4 通过Web CLI连接单机和主备实例时禁用的命令清单2

List

Connection

Sorted Set

BLPOP

SELECT

BZPOPMAX

BRPOP

-

BZPOPMIN

BLMOVE

-

BZMPOP

BRPOPLPUSH

-

-

BLMPOP

-

-

表5 通过Web CLI连接Cluster集群时禁用的命令1

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

-

-

表6 通过Web CLI连接Cluster集群时禁用的命令2

Pub/Sub

List

Connection

Sorted Set

PSUBSCRIBE

BLPOP

SELECT

BZPOPMAX

PUBLISH

BRPOP

-

BZPOPMIN

PUBSUB

BLMOVE

-

BZMPOP

PUNSUBSCRIBE

BRPOPLPUSH

-

-

SUBSCRIBE

BLMPOP

-

-

UNSUBSCRIBE

-

-

-

分享:

    相关文档

    相关产品

close