Tair (Redis OSS-compatible) supports multiple engine versions. This page covers the new features and compatibility changes for each major version — including both open-source community changes and Alibaba Cloud-specific behavior.
Each section covers features and compatibility changes from the open-source community and Alibaba Cloud. For a community-maintained view, see the Redis Major Version Compatibility Report, a joint effort by the Tair team and the community.
Tair (Enterprise Edition)
New features
-
Extended data structures: Versions 5.0 and later include Tair extended data structures, which provide richer data models and enterprise-grade capabilities. For details, see Overview of Tair extended data structures.
Compatibility changes
There are no compatibility changes between versions 6.0 and 7.0. The table below covers behavioral differences introduced when upgrading from version 5.0 to 6.0. For per-version command support, see Command support and limitations for Tair (Enterprise Edition).
| Extended data structure | Change (5.0 → 6.0) | Impact |
|---|---|---|
| TairHash (exHash) | When using the pattern parameter with EXHSCAN: version 5.0 runs expiration checks only on fields matching the pattern; version 6.0 runs expiration checks on all scanned fields, regardless of match. |
Scanning with a large count value when many fields have expired may increase response time (RT) in version 6.0. |
| TairBloom (Bloom) | The underlying hash algorithm is updated. | The false positive rate may increase slightly. |
| TairTS (TS) | EXTS.S.ALTER: Invalid attributes such as CHUNK_SIZE are silently ignored in version 6.0; they trigger an error in version 5.0. EXTS.S.INFO: The maxDataPoints field is no longer returned in version 6.0. EXTS.S.RANGE / EXTS.P.RANGE: The unsupported withLabels parameter is silently ignored in version 6.0; it triggers an error in version 5.0. Queries: Query buckets can be smaller than 1 second in version 6.0, which was not allowed in version 5.0. |
Check whether your application relies on the error-triggering behavior of EXTS.S.ALTER or EXTS.S.RANGE / EXTS.P.RANGE. Update any client code that reads the maxDataPoints field from EXTS.S.INFO responses. |
Redis open-source edition 7.0
New features
See the Redis 7.0 release notes for the full list of new features.
One notable behavior change: for module commands that run on background threads, the slow log records the entire pending time. For standard blocking commands such as BLPOP, the slow log records only the execution time, not the pending time.
Compatibility changes
See the Redis 7.0 release notes for all breaking changes. Key changes to be aware of:
-
The
LCScommand replacesSTRALGO.STRALGOis no longer supported. -
The
allow-oomflag in Lua scripts is no longer supported. For details, see redis/redis#10699.
For other command support changes, see Redis Open-Source Edition command support.
Redis open-source edition 6.0
New features
See the Redis 6.0 release notes for the full list of new features.
One Alibaba Cloud-specific addition: in a cluster architecture instance using direct connection mode, the PUBLISH command now broadcasts across the entire cluster.
Compatibility changes
See the Redis 6.0 release notes for all breaking changes.
Account management in Tair (Redis OSS-compatible) differs from the open-source Access Control List (ACL) feature:
-
The default account is
default. The account named after the instance ID (for example,r-bp1857n194kiuv****) is a separate, distinct account. -
Running
AUTHwithout specifying an account authenticates against thedefaultaccount.
For other command support changes, see Redis Open-Source Edition command support.
Redis open-source edition 5.0
New features
See the Redis 5.0 release notes for the full list of new features.
Alibaba Cloud-specific additions in this version:
-
Improved wake-up time precision for blocking connections
-
Seamless scaling for cluster architecture instances in direct connection mode
Compatibility changes
See the Redis 5.0 release notes for all breaking changes. Key changes to be aware of:
-
Commands executed in Lua scripts no longer sort results.
-
Account names are case-sensitive.
-
After enabling password-free access, the
AUTHcommand can still switch between accounts. -
The
READONLYandREADWRITEcommands are available.
Account permissions: If different accounts have different permissions, make sure your application only executes commands within the permitted scope — otherwise it will encounter permission errors.
Cloud-native Edition vs. Classic Edition: After enabling virtual private cloud (VPC) password-free access for a Cloud-native Edition instance, all connections still require allowlist verification. The #no_loose_check-whitelist-always parameter is not available for Cloud-native Edition instances.
For other command support changes, see Redis Open-Source Edition command support.
Retired versions
The following versions are retired. Information is provided for reference when migrating away from these versions.
Redis open-source edition 4.0
New features
See the Redis 4.0 release notes for the full list of new features.
Alibaba Cloud-specific additions in this version:
-
Sentinel-compatible mode: requires password-free access and supports only the
SENTINELandget-master-addr-by-namesubcommands. -
Direct connection mode address for cluster architecture instances.
-
The
ptod_enabledparameter, which passes client IP addresses to database nodes. See Supported parameters. -
Multiple accounts with read/write or read-only permissions. Switch accounts with the
AUTH user:passwordcommand.-
Account names are case-insensitive in version 4.0.
-
The default account is the instance ID (for example,
r-bp1857n194kiuv****). -
If an account is not specified or does not exist, authentication falls back to the default account.
-
When password-free access is enabled, connections use the default account and cannot switch accounts.
-
-
The
#no_loose_check-whitelist-alwaysparameter for password-free access, which controls whether allowlist verification applies to same-VPC connections. See Supported parameters.
Compatibility changes
See the Redis 4.0 release notes for all breaking changes. Key changes to be aware of:
-
Cluster architecture instances must record slot-to-key mappings, resulting in higher memory usage for the same dataset compared to standard architecture.
-
In cluster architecture, the
SORTcommand does not support theBYandGETparameters. -
SSL encryption is no longer supported.
-
In direct connection mode for cluster architecture instances, some
CLUSTERcommands are not supported. See Redis Open-Source Edition command support. -
In direct connection mode for cluster architecture instances, the
SELECTcommand is supported — but do not use it to detect whether a connection is in cluster mode, as this can cause your application to misidentify the connection type. -
In direct connection mode for cluster architecture instances, the
PUBLISHcommand does not broadcast to other nodes.
For other command support changes, see Redis Open-Source Edition command support.
Redis open-source edition 2.8
New features
See the Redis 2.8 release notes for the full list of new features.
Alibaba Cloud-specific additions in this version:
-
Password-free access: VPC connections skip IP allowlist verification, and the
AUTHcommand returnsOKimmediately without password verification. -
Cluster architecture in proxy mode
Compatibility changes
See the Redis 2.8 release notes for all breaking changes. Key changes to be aware of:
-
Some debugging and management commands are not supported.
-
CONFIG GETreturns only a subset of configuration items. Security-related configuration items are not returned. -
CONFIG SETalways returnsOKwithout applying any changes. -
The
INFOcommand has limited output. For example, security-related information such as Persistence and Replication is not returned. -
Cluster architecture instances in proxy mode do not support some commands. See Command limitations for cluster and read/write splitting instances.