tencent cloud

Tencent Cloud Distributed Cache (Redis OSS-Compatible)

Server Group

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

Command Introduction

The Server command family is designed for server status query, configuration management, and Ops operations. It serves as a core toolkit for DBAs and Ops personnel to manage instances on a daily basis. Its core commands can be categorized into the following six types based on their features:
Server Status Query
INFO: returns the operational statistics of each server module (such as memory, CPU, client connections, persistence status, and replication status). It serves as the most commonly used comprehensive diagnostic entry point.
DBSIZE: returns the total number of keys in the current database.
TIME: returns the current timestamp of the server.
LASTSAVE: returns the timestamp of the last RDB persistence.
ROLE: returns the role information of the current node within the replication topology.
Configuration and Parameter Management
CONFIG GET / CONFIG SET: read or dynamically modify server configuration parameters at runtime. (The SET operation is usually restricted in managed instances.)
CONFIG REWRITE: persists runtime-modified configurations to the configuration file.
CONFIG RESETSTAT: resets the INFO statistics counters.
Performance Diagnosis and Slow Query Analysis
SLOWLOG GET / SLOWLOG LEN / SLOWLOG RESET: query, count, or clear slow query logs. These commands serve as essential tools for diagnosing performance issues.
LATENCY (DOCTOR / GRAPH / HELP / HISTORY / LATEST / RESET): analyzes latency events to assist with performance tuning.
Command Information Query
COMMAND / COMMAND COUNT / COMMAND INFO / COMMAND GETKEYS / COMMAND GETKEYSANDFLAGS / COMMAND DOCS / COMMAND LIST: query metadata such as command lists, command parameters, key extraction rules, and command documentation.
Database-Level Operations
FLUSHDB / FLUSHALL: empties the current database or all databases. (This operation is usually restricted in managed instances.)
MONITOR: outputs every command received by the server in real time. (This command is available only in the standard architecture and is suitable for debugging purposes.)
Persistence and Client Management
BGSAVE / BGREWRITEAOF / SAVE: trigger background or foreground persistence operations.
CLIENT LIST / CLIENT KILL / CLIENT PAUSE / CLIENT REPLY / CLIENT ID: manage client connections, query specific clients, or terminate specific clients.
For more information, see the Valkey official documentation: Server Command Group.

Command Support Overview

Basic Commands: client list, client getname, client setname, command count, command info, command, config rewrite, config resetstat, config get, role, lastsave, dbsize, info, time, flushdb, flushall. These commands are supported by the standard architecture of Redis 2.8 and versions 4.0, 5.0, 6.2, 7.0, as well as the standard architecture and cluster architecture of Valkey 8.0 and 9.0.
Commands Added in Higher Versions: command getkeysandflags, command docs, command list. These commands are supported only by Redis version 7.0 and Valkey versions 8.0 and 9.0.
Supported Only by Standard Architecture: memory and slowlog are supported only in the standard architecture and are not supported in the cluster architecture. monitor is not supported in Redis version 6.2. In other versions, it is supported only by the standard architecture.
Supported Only by Cluster Architecture: cluster keyslot, cluster nodes, cluster getkeysinslot, cluster slots, cluster info, cluster countkeysinslot are supported only by the cluster architecture. cluster shards is supported only by the standard and cluster architectures of Redis version 7.0 and Valkey versions 8.0 and 9.0. Other cluster subcommands are not supported in any version.
Version-Specific Commands: command getkeys is not supported in Redis 2.8. lolwut is supported only in Redis version 5.0 and above.
Globally Unsupported Commands: bgrewriteaof, bgsave, client kill, sync, psync, client pause, client reply, slaveof, config set, debug object, debug segfault, save, shutdown, module, failover, slowlog help, and all acl series commands.
Cross-Slot Restriction: Server family commands are not designed for cross-slot access scenarios.

Command Compatibility Matrix

The support status of Server 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).
Note:
The monitor command is not supported in Redis version 6.2. It is supported in the standard architecture of versions prior to 6.2 (4.0, 5.0, 2.8).
memory and slowlog are available only in the standard architecture.
cluster shards is supported only in Redis version 7.0 and Valkey versions 8.0 and 9.0.
All acl series commands are not supported in any version or architecture.
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 Cross-Slot Support
bgrewriteaof
bgsave
client kill
sync
psync
client list
client getname
client pause
client reply
client setname
command count
command getkeys
command info
command getkegysandflags
command docs
command list
slaveof
config rewrite
config set
config resetstat
debug object
debug segfault
role
save
lastsave
shutdown
memory
command
dbsize
info
time
config get
monitor
flushdb
flushall
slowlog
module
lolwut
acl cat
acl deluser
acl genpass
acl help
acl list
acl load
acl log
acl save
acl setuser
acl users
acl whoami
failover
slowlog help

도움말 및 지원

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

피드백