This topic describes the commands that are supported by Redis-compatible instances of Tair Serverless KV.
Compatibility
The instances are compatible with most data structures and commands of Redis 6.0.
The instances use a cluster architecture. Connect to the instances using a client that supports the 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 that all keys used in the command reside in the same slot.
②: To ensure compatibility with the behavior of some clients and frameworks, this command returns only
OKor an empty result and is not executed.
Commands that are not listed in the tables are not supported.
LUA
To use Lua script commands, you must set the parameter txn-isolation-lock to
yes.The EVAL, EVALSHA, EVAL_RO, and EVALSHA_RO commands require at least one key and a numkeys value greater than 0.
Command | Support |
EVAL① | ✔️ |
EVALSHA① | ✔️ |
EVAL_RO① | ✔️ |
EVALSHA_RO① | ✔️ |
SCRIPT | ✔️ |