tencent cloud

腾讯云分布式缓存数据库(兼容 Redis)

动态与公告
产品动态
公告
新手指引
产品简介
产品概述
产品优势
应用场景
存储引擎
产品系列
产品版本
规格与性能
读写分离
多可用区部署
地域和可用区
名词解释
购买指南
计费概述
定价中心
购买实例
续费说明(包年包月)
退费说明(包年包月)
欠费说明
按量转包年包月
快速入门
快速创建实例
连接实例(Redis/Valkey 版)
操作指南
操作总览
连接数据库实例
管理实例
升级实例
管理节点(Redis/ValKey 版)
管理多可用区
备份与恢复
账号管理
参数配置
慢查询
访问管理
网络与安全
监控与告警
事件管理(Redis/ValKey 版)
数据迁移
Redis 版全球复制
数据库审计
诊断优化
Sentinel 模式
开发准则
命名规则
基本使用准则
Key 与 Value 设计原则
命令使用准则
客户端程序设计准则
连接池配置
命令参考
命令参考概览
Redis 版与 Valkey 版命令兼容性
大版本命令使用差异
Proxy 架构与直连模式的使用差异
命令更多操作(Redis/Valkey 版)
Memcached 版命令兼容性
实践教程
基于 Spring Boot 搭建 Redis 客户端监控
Redis 客户端连接配置策略与实践
集群架构全局 SCAN 使用指南
实例安全下线
热 Key 与 大 key
可用区迁移方案
故障处理
连接异常
Redisson 客户端超时重连异常分析及解决方案
性能排查与调优
API 文档
History
Introduction
API Category
Making API Requests
Instance APIs
Parameter Management APIs
Other APIs
Backup and Restoration APIs
Region APIs
Monitoring and Management APIs
Log APIs
Data Types
Error Codes
常见问题
使用常见问题
连接登录问题
购买相关问题
相关协议
服务等级协议
Terms of Service
词汇表
联系我们

server 族

PDF
聚焦模式
字号
最后更新时间: 2026-03-17 18:10:59
Redis 2.8版本标准架构、Redis 4.0、5.0、6.2、7.0,及其 ValKey 8.0标准架构与集群架构均支持 client list、client getname、client setname、command count、command info、config rewrite、config resetstat、role、lastsave、command、dbsize、info、time、config get、flushdb、flushall 命令。
Redis 2.8版本标准架构、Redis 4.0、5.0、6.2、7.0,及其 ValKey 8.0标准架构与集群架构均不支持 bgrewriteaof、bgsave、client kill、sync、psync、client pause、client reply、slaveof、config set、debug object、debug segfault、save、shutdown、module、acl cat、acl deluser、 acl genpass、acl getuser、acl help、acl list、acl load、acl log、acl save、acl setuser、acl users、acl whoami、failover 等命令。
Redis 4.0、5.0、6.2、7.0,及其 ValKey 8.0标准架构支持 MEMORY 与 slowlog 命令,集群架构不支持。
Redis 4.0、5.0、6.2、7.0,及其 ValKey 8.0版本集群架构支持 cluster keyslot、cluster nodes、cluster getkeysinslot、cluster slots、cluster info、cluster countkeysinslot,标准架构不支持。cluster 其他命令都不支持。
lolwut 命令在 Redis 5.0及以上版本的标准架构与集群架构才支持。
monitor 命令在 Redis 6.2版本暂停支持,在6.2之前版本支持。
7.0版本及其 ValKey 8.0支持:command getkegysandflags、command docs、command list。
命令族
命令
新增说明
server 族
CONFIG SET/GET
新增参数,原子性的处理多个配置的 set、get。
Quit
标记为 deprecated,客户端可以直接关闭 TCP 连接。
SHUTDOWN [NOSAVE | SAVE] [NOW] [FORCE] [ABORT]
新增 NOW | FORCE | ABORT。
NOW:立即关闭,不等待任何正在进行的命令完成。
FORCE:强制关闭 Redis 服务器,即使有命令正在执行。
ABORT:终止正在执行的命令,而不执行任何其他命令。
COMMAND GETKEYSANDFLAGS command [arg [arg ...]]
新增命令,获取命令的 key 和 flag。
COMMAND DOCS [command-name [command-name ...]]
新增命令。返回命令的文档信息,包含历史更改等记录。
COMMAND LIST [FILTERBY <MODULE module-name | ACLCAT category | PATTERN pattern>]
新增命令。返回 Redis 命令列表。
COMMAND INFO
更新命令。返回 Redis 命令的信息。
INFO [section [section ...]]
新增参数。支持同时获取多个章节。
XGROUP CREATE key group <id | $> [MKSTREAM] [ENTRIESREAD entries-read]
新增 ENTRIESREAD ,用于设置和开启 entries-read 和 lag 功能。
XGROUP SETID key group <id | $> [ENTRIESREAD entries-read]
新增 ENTRIESREAD ,用于设置和开启 entries-read 和 lag 功能。
各版本支持的具体信息,请参见下表。✓ 表示支持,x 表示不支持,- 表示该命令不存在跨 Slot 访问的场景。
命令
Redis 7.0/ValKey 8.0 标准架构
Redis 7.0/ValKey 8.0 集群架构
Redis 6.2标准架构
Redis 6.2集群架构
Redis 5.0标准架构
Redis 5.0集群架构
Redis 4.0标准架构
Redis 4.0集群架构
Redis 2.8标准架构
集群架构跨 Slot 支持
bgrewriteaof
x
x
x
x
x
x
x
x
x
-
bgsave
x
x
x
x
x
x
x
x
x
-
client kill
x
x
x
x
x
x
x
x
x
-
sync
x
x
x
x
x
x
x
x
x
-
psync
x
x
x
x
x
x
x
x
x
-
client list
-
client getname
-
client pause
x
x
x
x
x
x
x
x
x
-
client reply
x
x
x
x
x
x
x
x
x
-
client setname
-
command count
-
command getkeys
x
-
command info
-
command getkegysandflags
x
x
x
x
x
x
x
-
command docs
x
x
x
x
x
x
x
-
command list
x
x
x
x
x
x
x
-
slaveof
x
x
x
x
x
x
x
x
x
-
config rewrite
-
config set
x
x
x
x
x
x
x
x
x
-
config resetstat
-
debug object
x
x
x
x
x
x
x
x
x
-
debug segfault
x
x
x
x
x
x
x
x
x
-
role
-
save
x
x
x
x
x
x
x
x
x
-
lastsave
-
shutdown
x
x
x
x
x
x
x
x
x
-
memory
x
x
x
x
x
x
-
command
-
dbsize
-
info
-
time
-
config get
-
monitor
x
x
x
x
-
flushdb
-
flushall
-
slowlog
x
x
x
x
-
cluster keyslot
x
x
x
x
x
-
cluster nodes
x
x
x
x
x
-
cluster getkeysinslot
x
x
x
x
x
-
cluster slots
x
x
x
x
x
-
cluster info
x
x
x
x
x
-
cluster countkeysinslot
x
x
x
x
x
-
cluster shards
x
x
x
x
x
x
x
-
cluster 其他
x
x
x
x
x
x
x
x
x
-
module
x
x
x
x
x
x
x
x
x
-
lolwut
x
x
x
-
acl cat
x
x
x
x
x
x
x
x
x
-
acl deluser
x
x
x
x
x
x
x
x
x
-
acl genpass
x
x
x
x
x
x
x
x
x
-
acl help
x
x
x
x
x
x
x
x
x
-
acl list
x
x
x
x
x
x
x
x
x
-
acl load
x
x
x
x
x
x
x
x
x
-
acl log
x
x
x
x
x
x
x
x
x
-
acl save
x
x
x
x
x
x
x
x
x
-
acl setuser
x
x
x
x
x
x
x
x
x
-
acl users
x
x
x
x
x
x
x
x
x
-
acl whoami
x
x
x
x
x
x
x
x
x
-
failover
x
x
x
x
x
x
x
x
x
-
slowlog help
x
x
x
x
x
x
x
x
x
-

帮助和支持

本页内容是否解决了您的问题?

填写满意度调查问卷,共创更好文档体验。

文档反馈