You can create instances that run different versions of Redis Open-Source Edition in Tair (Redis OSS-compatible). This topic describes the new features and compatibility changes for each major version of Redis Open-Source Edition.
Each section describes the feature and compatibility changes from the community and Alibaba Cloud. You can also refer to the Redis Major Version Compatibility Report, which was co-developed by the Tair team and the community.
Redis Open-Source Edition 7.0
New features
For information about the new features of Redis 7.0, see the 7.0 release note.
For example, for module commands that use background threads, the slow query log feature records the entire suspension time. In contrast, for regular blocking commands such as BLPOP, the slow query log feature records only the running time and not the suspension time.
Compatibility
For information about breaking changes from the community, see the 7.0 release note.
For example, the STRALGO command is no longer supported and is replaced by the LCS command.
For security purposes, the CONFIG SET, CONFIG GET *, and other subcommands are disabled. You can query and modify instance parameters in the console or using OpenAPI. For more information, see Set parameters.
The allow-oom flag in Lua scripts is no longer supported. For more information, see redis/redis#10699.
For information about other command support changes, see Command support for Redis Open-Source Edition.
Redis Open-Source Edition 6.0
New features
For information about the new features of Redis 6.0, see the 6.0 release note.
In the direct connection mode for a cluster architecture, the PUBLISH command is broadcast across the cluster.
Compatibility
For information about breaking changes from the community, see the 6.0 release note.
Account management differs from the community Access Control List (ACL) account permissions. The following section describes account management in Tair (Redis OSS-compatible):
The default account is
default. The account named after the instance, such asr-bp1857n194kiuv****, is a separate account.When you connect to Redis using the AUTH command, the
defaultaccount is used for authentication if no account is specified.
For information about other command support changes, see Command support for Redis Open-Source Edition.
Redis Open-Source Edition 5.0
New features
For information about the new features of Redis 5.0, see the 5.0 release note.
Support for latency insight is available.
Support for real-time statistics on large keys is available.
Support for Transport Layer Security (TLS) encryption is available.
The wake-up time precision for blocking connections is optimized.
The direct connection mode for a cluster architecture supports seamless scaling.
Compatibility
For information about breaking changes from the community, see the 5.0 release note.
For example, commands executed by Lua scripts no longer sort the results.
Account names are case-sensitive.
After passwordless access over a VPC is enabled, you can use the AUTH command to switch between different accounts for passwordless connections.
NoteIf your accounts have different permissions, make sure that your application executes commands only within the scope of the permissions. Otherwise, a permission error is reported.
The READONLY and READWRITE commands are available.
The cloud-native edition and the classic edition have some differences. For a cloud-native edition instance, after passwordless access over a VPC is enabled, all connections still require whitelist authentication, and you cannot set the
#no_loose_check-whitelist-alwaysparameter.For information about other command support changes, see Command support for Redis Open-Source Edition.