31 KiB
31 KiB
- original_name
dcs-pd-210209002.html
Redis 6.0 Commands
DCS for Redis 6.0 is compatible with Redis 6.2.7 and with open-source protocols and commands.
This section describes DCS for Redis 6.0's command compatibility, including supported and disabled commands.
For more information about the command syntax, visit the Redis official website.
DCS Redis instances support most Redis commands. Any client compatible with the Redis protocol can access DCS.
- For security purposes, some Redis commands are disabled in DCS, as listed in
Commands Disabled by DCS for Redis 6.0 <dcs-pd-210209002__section1153718441417>
. - Some Redis commands (such as KEYS, FLUSHDB, and FLUSHALL) have usage restrictions, which are described in
Other Command Usage Restrictions <dcs-pd-200813004>
.
Commands Supported by DCS for Redis 6.0
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 | HSTRLEN | RPOPLPU | SUNIONSTORE | ZUNIONSTORE | SWAPDB |
SCAN | MSETNX | HLEN | RPOPLPUSH | SSCAN | ZINTERSTORE | MEMORY |
OBJECT | PSETEX | - |
RPUSH | - |
ZSCAN | CONFIG |
PEXPIREAT | SET | - |
RPUSHX | - |
ZRANGEBYLEX | - |
PEXPIRE | SETBIT | - |
LPUSH | - |
ZLEXCOUNT | - |
KEYS | SETEX | - |
- |
- |
ZPOPMIN | - |
- |
SETNX | - |
- |
- |
ZPOPMAX | - |
- |
SETRANGE | - |
- |
- |
ZREMRANGEBYSCORE | - |
- |
STRLEN | - |
- |
- |
ZREM | - |
- |
BITFIELD | - |
- |
- |
- |
- |
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 |
Commands Disabled by DCS for Redis 6.0
Generic (Key) | Server |
---|---|
MIGRATE | SLAVEOF |
- |
SHUTDOWN |
- |
LASTSAVE |
- |
DEBUG commands |
- |
COMMAND |
- |
SAVE |
- |
BGSAVE |
- |
BGREWRITEAOF |
- |
SYNC |
- |
PSYNC |