Compute
Elastic Cloud Server
Huawei Cloud Flexus
Bare Metal Server
Auto Scaling
Image Management Service
Dedicated Host
FunctionGraph
Cloud Phone Host
Huawei Cloud EulerOS
Networking
Virtual Private Cloud
Elastic IP
Elastic Load Balance
NAT Gateway
Direct Connect
Virtual Private Network
VPC Endpoint
Cloud Connect
Enterprise Router
Enterprise Switch
Global Accelerator
Management & Governance
Cloud Eye
Identity and Access Management
Cloud Trace Service
Resource Formation Service
Tag Management Service
Log Tank Service
Config
OneAccess
Resource Access Manager
Simple Message Notification
Application Performance Management
Application Operations Management
Organizations
Optimization Advisor
IAM Identity Center
Cloud Operations Center
Resource Governance Center
Migration
Server Migration Service
Object Storage Migration Service
Cloud Data Migration
Migration Center
Cloud Ecosystem
KooGallery
Partner Center
User Support
My Account
Billing Center
Cost Center
Resource Center
Enterprise Management
Service Tickets
HUAWEI CLOUD (International) FAQs
ICP Filing
Support Plans
My Credentials
Customer Operation Capabilities
Partner Support Plans
Professional Services
Analytics
MapReduce Service
Data Lake Insight
CloudTable Service
Cloud Search Service
Data Lake Visualization
Data Ingestion Service
GaussDB(DWS)
DataArts Studio
Data Lake Factory
DataArts Lake Formation
IoT
IoT Device Access
Others
Product Pricing Details
System Permissions
Console Quick Start
Common FAQs
Instructions for Associating with a HUAWEI CLOUD Partner
Message Center
Security & Compliance
Security Technologies and Applications
Web Application Firewall
Host Security Service
Cloud Firewall
SecMaster
Anti-DDoS Service
Data Encryption Workshop
Database Security Service
Cloud Bastion Host
Data Security Center
Cloud Certificate Manager
Edge Security
Situation Awareness
Managed Threat Detection
Blockchain
Blockchain Service
Web3 Node Engine Service
Media Services
Media Processing Center
Video On Demand
Live
SparkRTC
MetaStudio
Storage
Object Storage Service
Elastic Volume Service
Cloud Backup and Recovery
Storage Disaster Recovery Service
Scalable File Service Turbo
Scalable File Service
Volume Backup Service
Cloud Server Backup Service
Data Express Service
Dedicated Distributed Storage Service
Containers
Cloud Container Engine
SoftWare Repository for Container
Application Service Mesh
Ubiquitous Cloud Native Service
Cloud Container Instance
Databases
Relational Database Service
Document Database Service
Data Admin Service
Data Replication Service
GeminiDB
GaussDB
Distributed Database Middleware
Database and Application Migration UGO
TaurusDB
Middleware
Distributed Cache Service
API Gateway
Distributed Message Service for Kafka
Distributed Message Service for RabbitMQ
Distributed Message Service for RocketMQ
Cloud Service Engine
Multi-Site High Availability Service
EventGrid
Dedicated Cloud
Dedicated Computing Cluster
Business Applications
Workspace
ROMA Connect
Message & SMS
Domain Name Service
Edge Data Center Management
Meeting
AI
Face Recognition Service
Graph Engine Service
Content Moderation
Image Recognition
Optical Character Recognition
ModelArts
ImageSearch
Conversational Bot Service
Speech Interaction Service
Huawei HiLens
Video Intelligent Analysis Service
Developer Tools
SDK Developer Guide
API Request Signing Guide
Terraform
Koo Command Line Interface
Content Delivery & Edge Computing
Content Delivery Network
Intelligent EdgeFabric
CloudPond
Intelligent EdgeCloud
Solutions
SAP Cloud
High Performance Computing
Developer Services
ServiceStage
CodeArts
CodeArts PerfTest
CodeArts Req
CodeArts Pipeline
CodeArts Build
CodeArts Deploy
CodeArts Artifact
CodeArts TestPlan
CodeArts Check
CodeArts Repo
Cloud Application Engine
MacroVerse aPaaS
KooMessage
KooPhone
KooDrive
Help Center/ Distributed Cache Service/ Service Overview/ Command Compatibility/ Commands Supported and Disabled by DCS for Redis 4.0

Commands Supported and Disabled by DCS for Redis 4.0

Updated on 2024-06-28 GMT+08:00

DCS for Redis 4.0 is developed based on Redis 4.0.14 and is compatible with open-source protocols and commands. This section describes DCS for Redis 4.0's compatibility with Redis commands, including supported and disabled commands.

DCS Redis instances support most Redis commands. Any client compatible with the Redis protocol can access DCS.

Commands Supported by DCS for Redis 4.0

  • Table 1 and Table 2 list commands supported by single-node, master/standby, and Redis Cluster DCS Redis 4.0 instances.
  • Table 3 and Table 4 list the Redis commands supported by Proxy Cluster DCS Redis 4.0 instances.
  • Table 5 and Table 6 list the Redis commands supported by read/write splitting DCS Redis 4.0 instances.

For details about the command syntax, visit the Redis official website. For example, to view details about the SCAN command, enter SCAN in the search box on this page.

NOTE:
  • Commands available since later Redis versions are not supported by earlier-version instances. Run a command on redis-cli to check whether it is supported by DCS for Redis. If the message "(error) ERR unknown command" is returned, the command is not supported.
  • For DCS Redis 4.0 instances in the Redis Cluster mode, ensure that all commands in a pipeline are executed on the same shard.
Table 1 Commands supported by single-node, master/standby, and Redis Cluster DCS Redis 4.0 instances (1)

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

PEXPIRE

SET

-

RPUSHX

-

ZRANGEBYLEX

COMMAND

PEXPIREAT

SETBIT

-

LPUSH

-

ZLEXCOUNT

-

KEYS

SETEX

-

-

-

ZREMRANGEBYSCORE

-

-

SETNX

-

-

-

ZREM

-

-

SETRANGE

-

-

-

-

-

-

STRLEN

-

-

-

-

-

-

BITFIELD

-

-

-

-

-

Table 2 Commands supported by single-node, master/standby, and Redis Cluster DCS Redis 4.0 instances (2)

HyperLogLog

Pub/Sub

Transactions

Connection

Scripting

Geo

PFADD

PSUBSCRIBE

DISCARD

AUTH

EVAL

GEOADD

PFCOUNT

PUBLISH

EXEC

ECHO

EVALSHA

GEOHASH

PFMERGE

PUBSUB

MULTI

PING

SCRIPT EXISTS

GEOPOS

-

PUNSUBSCRIBE

UNWATCH

QUIT

SCRIPT FLUSH

GEODIST

-

SUBSCRIBE

WATCH

SELECT (not supported by Redis Cluster instances)

SCRIPT KILL

GEORADIUS

-

UNSUBSCRIBE

-

-

SCRIPT LOAD

GEORADIUSBYMEMBER

Table 3 Commands supported by Proxy Cluster DCS Redis 4.0 instances (1)

Generic (Key)

String

Hash

List

Set

Sorted Set

Server

DEL

APPEND

HDEL

BLPOP

SADD

ZADD

FLUSHALL

(FLUSHALL SYNC not supported.)

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

ROLE

PTTL

GET

HKEYS

LPOP

SISMEMBER

ZRANK

MEMORY

RENAME

GETRANGE

HMGET

LPUSHX

SMEMBERS

ZREMRANGEBYRANK

COMMAND

RENAMENX

GETSET

HMSET

LRANGE

SMOVE

ZREMRANGEBYCORE

COMMAND COUNT

RESTORE

INCR

HSET

LREM

SPOP

ZREVRANGE

COMMAND GETKEYS

SORT

INCRBY

HSETNX

LSET

SRANDMEMBER

ZREVRANGEBYSCORE

COMMAND INFO

TTL

INCRBYFLOAT

HVALS

LTRIM

SREM

ZREVRANK

CONFIG GET

TYPE

MGET

HSCAN

RPOP

SUNION

ZSCORE

CONFIG RESETSTAT

SCAN

MSET

HSTRLEN

RPOPLPUSH

SUNIONSTORE

ZUNIONSTORE

CONFIG REWRITE

OBJECT

MSETNX

HLEN

RPUSH

SSCAN

ZINTERSTORE

CONFIG SET

PEXPIRE

PSETEX

HKEYS

RPUSHX

-

ZSCAN

-

PEXPIREAT

SET

-

LPUSH

-

ZRANGEBYLEX

-

EXPIREAT

SETBIT

-

-

-

ZLEXCOUNT

-

KEYS

SETEX

-

-

-

ZREMRANGEBYSCORE

-

TOUCH

SETNX

-

-

-

ZREM

-

UNLINK

SETRANGE

-

-

-

ZREMRANGEBYLEX

-

RANDOMKEY

STRLEN

-

-

-

ZREVRANGEBYLEX

-

-

BITFIELD

-

-

-

-

-

-

GETBIT

-

-

-

-

-

Table 4 Commands supported by Proxy Cluster DCS Redis 4.0 instances (2)

HyperLogLog

Pub/Sub

Transactions

Connection

Scripting

Geo

Cluster

PFADD

PSUBSCRIBE

DISCARD

AUTH

EVAL

GEOADD

CLUSTER INFO

PFCOUNT

PUBLISH

EXEC

ECHO

EVALSHA

GEOHASH

CLUSTER NODES

PFMERGE

PUBSUB

MULTI

PING

SCRIPT EXISTS

GEOPOS

CLUSTER SLOTS

-

PUNSUBSCRIBE

UNWATCH

QUIT

SCRIPT FLUSH

GEODIST

CLUSTER ADDSLOTS

-

SUBSCRIBE

WATCH

SELECT

SCRIPT KILL

GEORADIUS

ASKING

-

UNSUBSCRIBE

-

CLIENT KILL

SCRIPT LOAD

GEORADIUSBYMEMBER

READONLY

-

-

-

CLIENT LIST

SCRIPT DEBUG YES|SYNC|NO

GEOSEARCH

READWRITE

-

-

-

CLIENT GETNAME

-

GEOSEARCHSTORE

-

-

-

-

CLIENT SETNAME

-

-

-

NOTE:

Cluster commands in the preceding table are supported only by Proxy Cluster instances created on or after September 1, 2022.

Table 5 Commands supported by read/write splitting DCS Redis 4.0 instances (1)

Generic (Key)

String

Hash

List

Set

Sorted Set

Server

DEL

APPEND

HDEL

BLPOP

SADD

ZADD

FLUSHALL

(FLUSHALL SYNC not supported.)

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

MONITOR

PTTL

GET

HKEYS

LPOP

SISMEMBER

ZRANK

SLOWLOG

RANDOMKEY

GETRANGE

HMGET

LPUSHX

SMEMBERS

ZREMRANGEBYRANK

ROLE

RENAME

GETSET

HMSET

LRANGE

SMOVE

ZREMRANGEBYCORE

SWAPDB

RENAMENX

INCR

HSET

LREM

SPOP

ZREVRANGE

MEMORY

RESTORE

INCRBY

HSETNX

LSET

SRANDMEMBER

ZREVRANGEBYSCORE

COMMAND

SORT

INCRBYFLOAT

HVALS

LTRIM

SREM

ZREVRANK

COMMAND COUNT

TTL

MGET

HSCAN

RPOP

SUNION

ZSCORE

COMMAND GETKEYS

TYPE

MSET

HSTRLEN

RPOPLPUSH

SUNIONSTORE

ZUNIONSTORE

COMMAND INFO

SCAN

MSETNX

HLEN

RPUSH

SSCAN

ZINTERSTORE

CONFIG GET

OBJECT

PSETEX

-

RPUSHX

-

ZSCAN

CONFIG RESETSTAT

PEXPIRE

SET

-

LPUSH

-

ZRANGEBYLEX

CONFIG REWRITE

PEXPIREAT

SETBIT

-

-

-

ZLEXCOUNT

CONFIG SET

EXPIREAT

SETEX

-

-

-

ZREMRANGEBYSCORE

-

KEYS

SETNX

-

-

-

ZREM

-

TOUCH

SETRANGE

-

-

-

ZREMRANGEBYLEX

-

UNLINK

STRLEN

-

-

-

ZREVRANGEBYLEX

-

-

BITFIELD

-

-

-

-

-

-

GETBIT

-

-

-

-

-

Table 6 Commands supported by read/write splitting DCS Redis 4.0 instances (2)

HyperLogLog

Pub/Sub

Transactions

Connection

Scripting

Geo

PFADD

PSUBSCRIBE

DISCARD

AUTH

EVAL

GEOADD

PFCOUNT

PUBLISH

EXEC

ECHO

EVALSHA

GEOHASH

PFMERGE

PUBSUB

MULTI

PING

SCRIPT EXISTS

GEOPOS

-

PUNSUBSCRIBE

UNWATCH

QUIT

SCRIPT FLUSH

GEODIST

-

SUBSCRIBE

WATCH

SELECT

SCRIPT KILL

GEORADIUS

-

UNSUBSCRIBE

-

CLIENT KILL

SCRIPT LOAD

GEORADIUSBYMEMBER

-

-

-

CLIENT LIST

SCRIPT DEBUG YES|SYNC|NO

GEOSEARCH

-

-

-

CLIENT GETNAME

-

GEOSEARCHSTORE

-

-

-

CLIENT SETNAME

-

-

Commands Disabled by DCS for Redis 4.0

The following lists commands disabled by DCS for Redis 4.0.

Table 7 Redis commands disabled in single-node and master/standby Redis 4.0 instances

Generic (Key)

Server

MIGRATE

SLAVEOF

-

SHUTDOWN

-

LASTSAVE

-

DEBUG commands

-

SAVE

-

BGSAVE

-

BGREWRITEAOF

-

SYNC

-

PSYNC

Table 8 Redis commands disabled in Proxy Cluster DCS Redis 4.0 instances

Generic (Key)

Server

Sorted Set

MIGRATE

BGREWRITEAOF

BZPOPMAX

MOVE

BGSAVE

BZPOPMIN

WAIT

CLIENT commands

ZPOPMAX

-

DEBUG OBJECT

ZPOPMIN

-

DEBUG SEGFAULT

-

-

LASTSAVE

-

-

PSYNC

-

-

SAVE

-

-

SHUTDOWN

-

-

SLAVEOF

-

-

LATENCY commands

-

-

MODULE commands

-

-

LOLWUT

-

-

SWAPDB

-

-

REPLICAOF

-

-

SYNC

-

Table 9 Redis commands disabled in Redis Cluster DCS Redis 4.0 instances

Generic (Key)

Server

Cluster

MIGRATE

SLAVEOF

CLUSTER MEET

-

SHUTDOWN

CLUSTER FLUSHSLOTS

-

LASTSAVE

CLUSTER ADDSLOTS

-

DEBUG commands

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

Table 10 Redis commands disabled in read/write splitting DCS Redis 4.0 instances

Generic

Server

Sorted Set

MIGRATE

BGREWRITEAOF

BZPOPMAX

WAIT

BGSAVE

BZPOPMIN

-

DEBUG OBJECT

ZPOPMAX

-

DEBUG SEGFAULT

ZPOPMIN

-

LASTSAVE

-

-

LOLWUT

-

-

MODULE LIST/LOAD/UNLOAD

-

-

PSYNC

-

-

REPLICAOF

-

-

SAVE

-

-

SHUTDOWN [NOSAVE|SAVE]

-

-

SLAVEOF

-

-

SWAPDB

-

-

SYNC

-

Commands That Can Be Renamed

Table 11 Commands that can be renamed

Command

command, keys, flushdb, flushall, hgetall, scan, hscan, sscan, and zscan

For Proxy Cluster instances, the dbsize and dbstats commands can also be renamed.

Method

See Renaming Commands.

We use cookies to improve our site and your experience. By continuing to browse our site you accept our cookie policy. Find out more

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback