All Products
Search
Document Center

Tair (Redis® OSS-Compatible):Client programs for connecting to Tair and Redis instances

Last Updated:Mar 26, 2026

This topic discusses important considerations for using client programs (SDKs) to connect to Tair and Redis instances. It also provides usage recommendations and describes the technical support available for official Tair clients.

In this topic, clients refer to third-party SDKs that are used to connect to Tair and Redis instances over the Redis protocol, as shown in the following figure.Redis SDK data channel

Important notes

  • The clients that are used to connect to Tair and Redis instances are provided by third parties. You can select a client based on your needs. Alibaba Cloud is not liable for the compliance of the client that you select.

  • When you use a third-party client to implement application development, maintenance, and failover, you are responsible for potential security risks.

    Alibaba Cloud is not liable for the stability, service limits, or security compliance of these clients. Additionally, the Service Level Agreement (SLA) of Alibaba Cloud does not apply to these clients. We recommend that you follow the updates of these clients on their official websites or software-hosting platforms to cope with potential issues and risks in a timely manner.

  • For information about the commands that are supported for Tair and Redis, see Overview.

Recommendations for using client programs

  • For Tair, we recommend using a stable SDK that offers service guarantees. For open-source Redis, use an SDK recommended in this topic or by the Redis community.

  • Avoid using niche SDKs or less common versions unless necessary. If your use case requires a specific client, choose a stable version with an active community and few known defects. You assume all risks associated with your choice of SDK.

  • If you use an open-source SDK from a commercial vendor, we recommend that enterprise users purchase a technical support service from them. This support is crucial given the complexity of enterprise environments and the possibility of the SDK becoming closed-source. Alibaba Cloud does not provide support for third-party commercial products.

  • When you use a client program, we recommend that you:

    • Familiarize yourself with known issues. For some common problems, see Common errors.

    • Understand the client's connection management and thread safety behavior to prevent business impact from incorrect usage or inherent client issues.

    • Actively report issues to the client's community. Alibaba Cloud encourages collaboration to help improve these client libraries.

The following table lists the recommended client programs for popular programming languages. For connection instructions, see Client program connection tutorials.

Table 1. Recommended clients by language

Language

Redis client

Recommended version

Tair client

Description

Java

Jedis (Recommended)

  • Jedis 4.x and later: 4.4.0 and later

  • Jedis 2.x or 3.x: 3.10.0 and later

TairJedis (Recommended)

An enhanced Tair client developed based on Jedis.

Note

Alibaba Cloud does not provide free technical support for this client. However, we generally respond to requests and offer support on a best-effort basis.

Jedis

Developed by the creators of Redis. Alibaba Cloud actively engages with the community to fix bugs and recommend features.

Lettuce

6.3.0.RELEASE and later. You must enable the TCP_USER_TIMEOUT parameter. For more information, see the Lettuce upgrade announcement.

Lettuce

Alibaba Cloud can advocate for bug fixes and improvements, but the community response may be slow.

Redisson

None

Redisson

A third-party commercial product. You are responsible for obtaining technical support service, which may require purchasing it from the vendor.

C/C++

Hiredis (Recommended)

1.2.0 and later

Hiredis (Recommended)

Developed by the creators of Redis.

C#

StackExchange.Redis (Recommended)

2.7.20 and later. For more information, see the StackExchange.Redis upgrade announcement.

AlibabaCloud.TairSDK (Recommended)

An enhanced Tair client developed based on StackExchange.Redis.

Note

Alibaba Cloud does not provide free technical support for this client. However, we generally respond to requests and offer support on a best-effort basis.

StackExchange.Redis

A popular, thread-safe, open-source client program with an active community.

ServiceStack.Redis

None

ServiceStack.Redis

A third-party commercial product. You are responsible for obtaining technical support service, which may require purchasing it from the vendor.

CSRedis

None

CSRedis

Not recommended, as this client is no longer maintained by its original developer.

Python

redis-py (Recommended)

  • Python 3.7: 4.4.4 and later

  • Python 3.8 and later: 4.5.4 and later

Tair-py (Recommended)

Tair enhanced client, a Tair client developed based on redis-py.

Note

Alibaba Cloud does not provide free technical support for this client. However, we generally respond to requests and offer support on a best-effort basis.

redis-py

Developed by the creators of Redis.

Go

go-redis (Recommended)

go-redis v9.0 and later. Otherwise, you may encounter an incompatibility error when using an address in direct connection mode.

Tair-go (Recommended)

An enhanced Tair client developed based on go-redis.

Note

Alibaba Cloud does not provide free technical support for this client. However, we generally respond to requests and offer support on a best-effort basis.

go-redis

A well-designed, open-source client program with an active community.

Technical support for Tair clients

Tair clients are published to GitHub and related package managers such as NuGet. For more information, see TairJedis, AlibabaCloud.TairSDK, Tair-go, and Tair-py.

Tair provides the following additional technical support for Tair clients.

Important

The SLA of Alibaba Cloud does not apply to these technical support services.

  • Maintain the stability of the key features of Tair clients.

  • Fix security vulnerabilities.

  • Publish best practices and sample code on a regular basis.

  • Communicate requirements to the corresponding community and engage users in client optimization.

Table 2. Time frames of technical support services for Tair clients

Category

Description

Time frame

Stability issues of key features

  • Crashes caused by Tair clients.

  • Vulnerabilities whose Common Vulnerabilities and Exposures (CVE) scores are higher than 7.0.

  • Leaks of resources managed by Tair clients.

Three business days

Regular fixes

  • Functional errors.

  • A lack of specific features.

Two weeks

Requirements and feature updates

  • Dependencies of the basic features on the corresponding community.

  • Major version upgrades in the corresponding community.

  • Personalized requirements such as high-level implementation and establishment of special connections.

  • Updates of the basic features depend on the open source community. In theory, for all Tair clients except Jedis, the periodic release of major versions is subject to the community.

  • Enterprise-class users can submit personalized requirements to Alibaba Cloud.