tencent cloud

Tencent Cloud Distributed Cache (Redis OSS-Compatible)

Connection Group

Download
포커스 모드
폰트 크기
마지막 업데이트 시간: 2026-08-11 11:11:59
AI 번역

Command Introduction

The Connection command family is primarily designed to handle connection establishment between clients and servers, state maintenance, protocol negotiation, and fine-grained control. Its core commands can be categorized into the following three types based on their features:
Authentication and Session Control
AUTH: authenticates users using a password or a "username + password" combination.
SELECT: switches the logical database number (applicable to standard standalone/master-replica architectures).
QUIT / RESET: is used to gracefully disconnect or reset the current connection state.
Connectivity Detection and Protocol Negotiation
PING / ECHO: is used for heartbeat keep-alive and network connectivity testing.
HELLO: negotiates the RESP communication protocol version (RESP2 / RESP3) during connection establishment.
Fine-grained Client Ops Management (Redis 6.0+ / Valkey 8.0+)
Through advanced subcommands such as CLIENT INFO (querying connection attributes), CLIENT SETNAME (setting connection identifiers), and CLIENT NO-EVICT (controlling connection-level memory eviction policies), Ops personnel can efficiently locate, troubleshoot, and manage resources for massive client connections.
For more information, see the Valkey official documentation: Connection Command Group.

Command Support Overview

Basic Commands (5): auth, echo, ping, quit, select. These commands are supported by the standard architecture of Redis versions 2.8, 4.0, 5.0, 6.2, and 7.0, as well as the standard and cluster architectures of Valkey versions 8.0 and 9.0.
Higher-Version Commands (3): hello, auth name pwd (authentication with username and password), client kill. These commands are supported only by Redis versions 6.2 and 7.0, and Valkey versions 8.0 and 9.0.
Supported Only by Standard Architecture: The swapdb command is supported only by the standard architecture and is not supported by the cluster architecture.
Globally Unsupported Commands (7): client caching, client getredir, client info, client tracking, client trackinginfo, client unpause, reset. These commands are not supported by any version or architecture.
Cross-Slot Restriction: Connection family commands do not involve cross-slot access scenarios.

Command Compatibility Matrix

The support status of Connection family commands across different versions and architectures is shown in the table below (✓ indicates supported, ✗ indicates not supported, and — indicates that the command does not involve a cross-slot access scenario).
Command
Valkey 9.0 Standard Architecture
Valkey 9.0 Cluster Architecture
Redis 7.0/Valkey 8.0 Standard Architecture
Redis 7.0/Valkey 8.0 Cluster Architecture
Redis 6.2 Standard Architecture
Redis 6.2 Cluster Architecture
Redis 5.0 Standard Architecture
Redis 5.0 Cluster Architecture
Redis 4.0 Standard Architecture
Redis 4.0 Cluster Architecture
Redis 2.8 Standard Architecture
Cluster Architecture Support for Cross-Slot
auth
auth name pwd
echo
ping
quit
select
swapdb
hello
client caching
client getredir
client info
client tracking
client trackinginfo
client unpause
reset
client list
client kill

도움말 및 지원

문제 해결에 도움이 되었나요?

피드백