All Products
Search
Document Center

Tair (Redis® OSS-Compatible):Redis-compatible commands

Last Updated:Sep 23, 2026

This topic describes command support for Tair Serverless KV instances.

Compatibility

  • The instance supports most Redis 6.0 data structures and commands.

  • Because the instance uses a cluster architecture, you should use a client that supports Redis cluster mode.

Supported commands

The tables in this topic use the following conventions:

  • ✔️: The command is supported.

  • ❌: The command is not supported.

  • ①: This command requires all involved keys to be in the same slot.

  • ②: To ensure compatibility with the behavior of some clients and frameworks, this command returns only OK or an empty result and is not executed.

Note

Commands that are not listed in the tables are not supported.

Unsupported commands

  • HyperLogLog commands, such as PFADD, PFCOUNT, and PFMERGE.

  • stream commands, such as XACK, XADD, XCLAIM, XDEL, XGROUP, XLEN, XPENDING, XRANGE, XREAD, XREADGROUP, XREVRANGE, and XTRIM.

  • Pub/Sub commands, such as PSUBSCRIBE, PUBLISH, PUNSUBSCRIBE, SUBSCRIBE, UNSUBSCRIBE, SPUBLISH, SSUBSCRIBE, SUNSUBSCRIBE, and PUBSUB.

  • function commands, such as FCALL, FCALL_RO, FUNCTION DELETE, FUNCTION FLUSH, FUNCTION LIST, FUNCTION LOAD, FUNCTION RESTORE, and FUNCTION STATS.

String

Command

Supported

APPEND

✔️

DECR

✔️

DECRBY

✔️

GET

✔️

GETDEL

✔️

GETEX

✔️

GETRANGE

✔️

GETSET

✔️

LCS

❌

INCR

✔️

INCRBY

✔️

INCRBYFLOAT

✔️

MGET①

✔️

MSET①

✔️

MSETNX①

✔️

PSETEX

✔️

SET

✔️

SETEX

✔️

SETNX

✔️

SETRANGE

✔️

STRALGO

❌

STRLEN

✔️

SUBSTR

✔️

Generic

Command

Supported

COPY

❌

DEL①

✔️

DUMP

✔️

EXISTS①

✔️

EXPIRE

✔️

EXPIREAT

✔️

EXPIRETIME

✔️

KEYS

✔️

MIGRATE

❌

MOVE

❌

OBJECT

❌

PERSIST

✔️

PEXPIRE

✔️

PEXPIREAT

✔️

PEXPIRETIME

✔️

PTTL

✔️

RANDOMKEY

✔️

RENAME①

✔️

Note

Supports keys up to 16 MB in size.

RENAMENX①

✔️

Note

Supports keys up to 16 MB in size.

RESTORE

✔️

SCAN

✔️

SORT

❌

SORT_RO

❌

TOUCH

❌

TTL

✔️

TYPE

✔️

UNLINK①

✔️

WAIT

❌

Hash

Command

Supported

HDEL

✔️

HEXISTS

✔️

HGET

✔️

HGETALL

✔️

HINCRBY

✔️

HINCRBYFLOAT

✔️

HKEYS

✔️

HLEN

✔️

HMGET

✔️

HMSET

✔️

HRANDFIELD

❌

HSCAN

✔️

HSET

✔️

HSETNX

✔️

HSTRLEN

✔️

HVALS

✔️

Set

Command

Supported

SADD

✔️

SCARD

✔️

SDIFF①

✔️

SDIFFSTORE①

✔️

SINTER①

✔️

SINTERCARD

❌

SINTERSTORE①

✔️

SISMEMBER

✔️

SMEMBERS

✔️

SMISMEMBER

✔️

SMOVE①

✔️

SPOP

✔️

SRANDMEMBER

✔️

SREM

✔️

SSCAN

✔️

SUNION①

✔️

SUNIONSTORE①

✔️

Sorted set

Command

Supported

BZMPOP

❌

BZPOPMAX

❌

BZPOPMIN

❌

ZADD

✔️

ZCARD

✔️

ZCOUNT

✔️

ZDIFF

❌

ZDIFFSTORE①

✔️

ZINCRBY

✔️

ZINTER

❌

ZINTERCARD

❌

ZINTERSTORE①

✔️

ZLEXCOUNT

✔️

ZMPOP

❌

ZMSCORE

✔️

ZPOPMAX

✔️

ZPOPMIN

✔️

ZRANDMEMBER

❌

ZRANGE

✔️

ZRANGEBYLEX

✔️

ZRANGEBYSCORE

✔️

ZRANGESTORE

❌

ZRANK

✔️

ZREM

✔️

ZREMRANGEBYLEX

✔️

ZREMRANGEBYRANK

✔️

ZREMRANGEBYSCORE

✔️

ZREVRANGE

✔️

ZREVRANGEBYLEX

✔️

ZREVRANGEBYSCORE

✔️

ZREVRANK

✔️

ZSCAN

✔️

ZSCORE

✔️

ZUNION

❌

ZUNIONSTORE①

✔️

Lists

Command

Supported

BLPOP

❌

BLMOVE

❌

BLMPOP

❌

BRPOP

❌

BRPOPLPUSH

❌

LINDEX

✔️

LINSERT

✔️

LLEN

✔️

LMOVE①

✔️

LMPOP①

❌

LPOP

✔️

LPOS

✔️

LPUSH

✔️

LPUSHX

✔️

LRANGE

✔️

LREM

✔️

LSET

✔️

LTRIM

✔️

RPOP

✔️

RPOPLPUSH①

✔️

RPUSH

✔️

RPUSHX

✔️

Bitmap

Command

Supported

BITCOUNT

✔️

BITFIELD

✔️

BITFIELD_RO

❌

BITOP①

✔️

BITPOS

✔️

GETBIT

✔️

SETBIT

✔️

Transactions

Important

To use transaction-related commands, you must set the parameter txn-isolation-lock to yes.

Command

Supported

EXEC

✔️

DISCARD

✔️

MULTI

✔️

UNWATCH

✔️

WATCH①

✔️

LUA

Important
  • To use Lua script commands, set the txn-isolation-lock parameter to yes. For more information, see the parameter overview.

  • When you run the EVAL, EVALSHA, EVAL_RO, or EVALSHA_RO commands, you must pass at least one key and the numkeys parameter must be greater than 0.

Command

Supported

EVAL①

✔️

EVALSHA①

✔️

EVAL_RO①

✔️

EVALSHA_RO①

✔️

SCRIPT

✔️

GEO

Command

Supported

GEOADD

✔️

GEODIST

✔️

GEOHASH

✔️

GEOPOS

✔️

GEORADIUS

✔️

GEORADIUS_RO

✔️

GEORADIUSBYMEMBER

✔️

GEORADIUSBYMEMBER_RO

✔️

GEOSEARCH

✔️

GEOSEARCHSTORE①

✔️

Server management

Command

Supported

ACL

❌

BGREWRITEAOF

❌

BGSAVE

❌

BKLIST

❌

COMMAND

✔️

CONFIG

❌

DBSIZE

✔️

DEBUG

❌

FLUSHALL

✔️

FLUSHDB

✔️

Important

Only the synchronous execution mode of the FLUSHDB command is supported. The asynchronous execution mode is not supported. In a production environment, run the FLUSHDB command with caution.

INFO

✔️

LASTSAVE

❌

LATENCY

❌

LOLWUT

❌

MEMORY

❌

MONITOR

❌

REWRITEAOF

❌

SAVE

❌

SHUTDOWN

❌

SLOWLOG

✔️

SWAPDB

❌

TIME

✔️

Connection management

Command

Supported

AUTH

✔️

CLIENT CACHING

❌

CLIENT GETNAME

✔️

CLIENT GETREDIR

❌

CLIENT ID

❌

CLIENT INFO

❌

CLIENT KILL

✔️

CLIENT LIST

✔️

CLIENT NO-EVICT

❌

CLIENT PAUSE

❌

CLIENT REPLY

❌

CLIENT SETNAME

✔️

CLIENT TRACKING

❌

CLIENT TRACKINGINFO

❌

CLIENT UNBLOCK

❌

CLIENT UNPAUSE

❌

ECHO

✔️

HELLO

❌

PING

✔️

QUIT

✔️

RESET

❌

SELECT

✔️

SENTINEL sentinels②

✔️

SENTINEL get-master-addr-by-name ②

✔️

Cluster management

Command

Supported

CLUSTER ADDSLOTS ②

✔️

CLUSTER ADDSLOTSRANGE

❌

CLUSTER BUMPEPOCH

❌

CLUSTER COUNT-FAILURE-REPORTS

✔️

CLUSTER COUNTKEYSINSLOT

✔️

CLUSTER DELSLOTS ②

✔️

CLUSTER DELSLOTSRANGE

❌

CLUSTER FAILOVER ②

✔️

CLUSTER FLUSHSLOTS

❌

CLUSTER FORGET ②

✔️

CLUSTER GETKEYSINSLOT ②

✔️

CLUSTER INFO

✔️

CLUSTER KEYSLOT

✔️

CLUSTER LINKS

❌

CLUSTER MEET ②

✔️

CLUSTER MYID

❌

CLUSTER NODES

✔️

CLUSTER REPLICAS

❌

CLUSTER REPLICATE ②

✔️

CLUSTER RESET ②

✔️

CLUSTER SAVECONFIG ②

✔️

CLUSTER SET-CONFIG-EPOCH ②

✔️

CLUSTER SETSLOT ②

✔️

CLUSTER SHARDS

❌

CLUSTER SLAVES

✔️

CLUSTER SLOTS

✔️

READONLY ②

✔️

READWRITE ②

✔️