tencent cloud

Tencent Cloud Distributed Cache (Redis OSS-Compatible)

Release Notes and Announcements
Release Notes
Announcements
User Tutorial
Product Introduction
Overview
Product Strengths
Use Cases
Storage Engine
Product Series
Product Versions
Specifications and Performance
Read/Write Separation
Multi-AZ Deployment
Regions and AZs
Terms
Service Regions and Service Providers
Purchase Guide
Billing Overview
Pricing Center
Instance Purchasing
Renewal (Yearly/Monthly Subscription)
Refund (Yearly/Monthly Subscription)
Overdue Payments
Switching from Pay-as-You-Go to Yearly/Monthly Subscription
Getting Started
Quickly Creating an Instance
Connecting to an Instance (Redis/Valkey Edition)
Operation Guide
Operation Overview
Connecting to a Database Instance
Managing Instances
Upgrade Instance
Management Node (Redis/ValKey Edition)
Multi-AZ Deployment Management
Backup and Restoration
Managing Accounts
Parameter Configuration
Slow Query
Access Management
Network and Security
Monitoring and Alarms
Event Management (Redis/ValKey Edition)
Data Migration
Global Replication for Redis Edition
Database Audit
Performance Optimization
Sentinel Mode
Development Guidelines
Naming Rules
Basic Usage Guidelines
Design Principles of Key and Value
Command Usage Guidelines
Design Principles of Client Programs
Connection Pool Configuration
Command Reference
Command Reference Overview
Redis Edition and Valkey Edition Command Compatibility
Version Command Usage Differences
Differences Between the Proxy Architecture and Direct Connection Mode
More Command Operations (Redis/Valkey Edition)
Memcached Edition Command Compatibility
Practical Tutorial
Building TencentDB for Redis® Client Monitoring Based on Spring Boot
Redis Client Connection Configuration Policy and Practice
Global SCAN Guide for Cluster Architecture
Eliminating Instances Securely
Hot Key and Big Key
AZ Migration Scheme
Troubleshooting
Connection Exception
Exception Analysis and Solution of Redisson Client Timeout Reconnection
Performance Troubleshooting and Fine-Tuning
API Documentation
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
FAQs
General
Connection and Login
Purchase
Service Agreement
Service Level Agreement
Terms of Service
Glossary
Contact Us

Keys

PDF
포커스 모드
폰트 크기
마지막 업데이트 시간: 2026-03-17 18:10:58
Redis 4.0, 5.0, 6.2, 7.0, and ValKey 8.0 Standard Architecture and Cluster Architecture all support the touch, restore, object, unlink, wait, dump, del, scan, exists, expire, expireat, keys, type, move, ttl, persist, pexpire, pexpireat, pttl, randomkey, rename, renamenx, and sort commands.
Only Redis 6.2, 7.0, and its ValKey 8.0 support the copy command and object help command.
Cluster Architecture supports the del and exists commands in cross-slot scenarios, but does not support unlink, rename, or renamenx.
Redis 7.0 version and its ValKey 8.0 support: sort_ro, expiretime, pexpiretime.
Command Family
Command
New Description
Keys Family
EXPIRETIME key
New commands added.
Returns the second-precision expiration timestamp of the key.
PEXPIRETIME key
New commands added.
Returns the millisecond-precision expiration timestamp of the key.
EXPIRE key seconds [NX | XX | GT | LT]

New parameters added: NX | XX | GT | LT.
NX sets an expiration time only when the key does not have an expiration time.
XX sets an expiration time only when the key has an expiration time.
GT sets a new expiration time only when the new expiration time is greater than the current expiration time.
LT sets a new expiration time only when the new expiration time is less than the current expiration time.
SORT_RO key [BY pattern] [LIMIT offset count] [GET pattern [GET pattern ...]] [ASC | DESC] [ALPHA]
New commands added.
Sort the sorted set (sorted set) in Redis and obtain the sorted results.
For specific information, see the table below. "✓" indicates support, "x" indicates no support, and "-" indicates that the command does not involve scenarios of cross-slot access.
Command
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
touch
x
-
restore
-
object
-
object help
x
x
x
x
x
-
unlink
x
x
wait
x
-
migrate
x
x
x
x
x
x
x
x
x
-
dump
-
del
scan
-
exists
expire
-
expireat
-
keys
-
type
-
move
-
ttl
-
persist
-
pexpire
-
pexpireat
-
pttl
-
randomkey
-
rename
x
renamenx
x
sort
-
sort_ro
x
x
x
x
x
x
x
-
copy
x
x
x
x
x
-
expiretime
x
x
x
x
x
x
x
-
pexpiretime
x
x
x
x
x
x
x
-

도움말 및 지원

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

피드백