In Tair (Redis OSS-compatible), you can create Redis Open-Source Edition instances that run different major versions. This topic describes the new features and compatibility changes for each major version of Redis Open-Source Edition.
Each section in this topic describes the features and compatibility changes provided by the Redis community and Alibaba Cloud. You can also refer to the Tair team and the community's co-authored Redis Major Version Compatibility Report. This report was co-authored 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 Redis 7.0 release notes.
For example, for module commands that use background threads, the slow query log records the entire time that a command is suspended. For common block commands such as BLPOP, the slow query log records only the running time, not the suspended time.
Compatibility
For information about the breaking changes for new Redis 7.0 features, see Redis 7.0 release notes.
For example, the STRALGO command is replaced with the LCS command.
For security reasons, the CONFIG SET, CONFIG GET *, and other related subcommands are disabled. You can query and modify the parameter settings of an instance in the console or by calling OpenAPI operations. For more information, see Configure instance parameters.
The allow-oom flag in Lua scripts is no longer supported. For more information, see redis/redis#10699.
For information about other changes in supported commands, see Commands supported by Redis Open-Source Edition.
Redis Open-Source Edition 6.0
New features
For information about the new features of Redis 6.0, see Redis 6.0 release notes.
In a cluster instance that uses the direct connection mode, PUBLISH commands are broadcast to all nodes.
Compatibility
For information about the breaking changes for new Redis 6.0 features, see Redis 6.0 release notes.
Account management in Tair (Redis OSS-compatible) differs from the Access Control List (ACL) feature in open-source Redis. The following describes the account management mechanism in Tair (Redis OSS-compatible):
Two accounts are available for an instance: the default account named
defaultand an account that is named after the instance, such asr-bp1857n194kiuv****.If you do not specify an account when you use the AUTH command to connect to a Redis instance, the
defaultaccount is used for authentication.If the account that you specify does not exist when you use the AUTH command to connect to a Redis instance, the
-WRONGPASS invalid username-password pairerror is returned. The system does not automatically switch to the default account for authentication.After you enable password-free access for an instance in a VPC, if you use the AUTH command to connect and the specified account does not exist or you specify an incorrect password, the system returns the
-WRONGPASS invalid username-password pairerror. The system no longer returnsOK.
When you use the CONFIG GET command, you must specify a configuration item. Wildcard characters (*) are not supported.
For information about other changes in supported commands, see Commands supported by Redis Open-Source Edition.
Redis Open-Source Edition 5.0
New features
For information about the new features of Redis 5.0, see Redis 5.0 release notes.
The latency insights feature is supported.
The real-time large key statistics feature is supported.
TLS encryption is supported.
The wake-up time precision for blocking connections is optimized.
Cluster instances in direct connection mode support seamless scaling.
Compatibility
For information about the breaking changes for new Redis 5.0 features, see Redis 5.0 release notes.
For example, the results of commands that are executed in Lua scripts are no longer sorted.
Account names are case-sensitive.
After you enable password-free access for an instance in a VPC, you can use the AUTH command to switch between different accounts for password-free connections.
NoteIf you grant different permissions to different accounts, ensure that your application runs commands within the scope of the granted permissions. Otherwise, an error indicating insufficient permissions is returned.
The READONLY and READWRITE commands are available.
There are differences between cloud-native instances and classic instances. After you enable password-free access for a cloud-native instance, all connections to the instance must be authenticated using a whitelist, and the
#no_loose_check-whitelist-alwaysparameter cannot be set.For information about other changes in supported commands, see Commands supported by Redis Open-Source Edition.