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

Redis 6.0命令(公测阶段)

华为云DCS Redis 6.0基于开源KeyDB6.0.16版本进行开发,兼容开源的协议和命令。

本章节主要介绍DCS Redis 6.0命令的兼容性,包括支持命令列表,禁用命令列表。

命令的具体详细语法,请前往KeyDB官方网站(中文网站为:https://docs.keydb.dev/docs/commands/)查看。

DCS Redis缓存实例支持Redis的绝大部分命令,任何兼容Redis协议的客户端都可以访问DCS。

Redis 6.0支持的命令

以下列出了Redis 6.0实例支持的命令。

表1 Redis 6.0 支持命令清单1

Keys

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

SLOWLOG

TYPE

MSET

HSTRLEN

RPOPLPU

SUNIONSTORE

ZUNIONSTORE

ROLE

SCAN

MSETNX

HLEN

RPOPLPUSH

SSCAN

ZINTERSTORE

SWAPDB

OBJECT

PSETEX

-

RPUSH

SPOP

ZSCAN

MEMORY

PEXPIREAT

SET

-

RPUSHX

-

ZRANGEBYLEX

CONFIG

PEXPIRE

SETBIT

-

LPUSH

-

ZLEXCOUNT

-

-

SETEX

-

-

-

ZPOPMIN

-

-

SETNX

-

-

-

ZPOPMAX

-

-

SETRANGE

-

-

-

ZREMRANGEBYSCORE

-

-

STRLEN

-

-

-

ZREM

-

-

BITFIELD

-

-

-

-

-

表2 Redis 6.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

-

-

SCRIPT LOAD

GEORADIUSBYMEMBER

XINFO

-

-

-

-

-

-

XLEN

-

-

-

-

-

-

XPENDING

-

-

-

-

-

-

XRANGE

-

-

-

-

-

-

XREAD

-

-

-

-

-

-

XREADGROUP

-

-

-

-

-

-

XREVRANGE

-

-

-

-

-

-

XTRIM

Redis 6.0禁用的命令

以下列出了Redis 6.0实例禁用的命令。

表3 Redis 6.0主备禁用命令

Keys

Server

MIGRATE

SLAVEOF

-

SHUTDOWN

-

LASTSAVE

-

DEBUG相关类

-

COMMAND

-

SAVE

-

BGSAVE

-

BGREWRITEAOF

-

SYNC

-

PSYNC

分享:

    相关文档

    相关产品

close