Redis 6.0命令
DCS Redis 6.0兼容开源6.2.7版本,兼容开源的协议和命令。
本章节主要介绍DCS Redis 6.0命令的兼容性,包括支持命令列表,禁用命令列表。
命令的具体详细语法,请前往Redis官方网站查看。
DCS Redis缓存实例支持Redis的绝大部分命令,任何兼容Redis协议的客户端都可以访问DCS。
- 因安全原因,部分Redis命令在分布式缓存服务中被禁用,具体请见Redis 6.0禁用的命令。
- 部分Redis命令使用时有限制,例如KEYS、FLUSHDB、FLUSHALL等,具体请见部分命令使用限制。
Redis 6.0支持的命令
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 |
- |
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 |
- |
- |
- |
Redis 6.0禁用的命令
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 |