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 Redis Instance
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

scripting and functions Group

PDF
フォーカスモード
フォントサイズ
最終更新日: 2026-03-17 18:10:59
Redis versions 2.8 (Standard Architecture), 4.0, 5.0, 6.2, 7.0, and ValKey 8.0 (both Standard Architecture and Cluster Architecture) support the eval, evalsha, script exists, script flush, script load, and script kill commands, but do not support the script debug command. The eval, evalsha, and script exists commands are not supported in cross-slot scenarios for the Cluster Architecture. Version 7.0 introduces function-related commands, as shown in the following table.
Command Family
Command
New Description
function (added in Redis 7.0)
FUNCTION DELETE library-name
Added the function feature.
Delete a lib and its functions.
FUNCTION DUMP
Export all functions.
FUNCTION FLUSH [ASYNC | SYNC]

Delete all libs and their functions.
FUNCTION KILL

Kill the currently executing function.
FUNCTION LIST [LIBRARYNAME library-name-pattern] [WITHCODE]
Return information about the lib and functions.
FUNCTION LOAD [REPLACE] function-code
Load/Replace functions.
FUNCTION RESTORE serialized-value [FLUSH | APPEND | REPLACE]

is used to restore snapshots previously saved using the SAVE or BGSAVE commands.
FLUSH: Before a snapshot is restored, all data in the current database will be cleared.
APPEND: Before a snapshot is restored, the data in the current database will be appended to the snapshot.
REPLACE: Before a snapshot is restored, the data in the current database will be completely replaced by the data in the snapshot.
FUNCTION STATS
Return the status of the currently executing function.
FCALL function numkeys [key [key ...]] [arg [arg ...]]
Invoke a function.
FCALL_RO function numkeys [key [key ...]] [arg [arg ...]]
FCALL Readonly edition.
Scripting Family
EVAL_RO script numkeys [key [key ...]] [arg [arg ...]]
New command to run lua scripts in read-only replicas.
EVALSHA_RO sha1 numkeys [key [key ...]] [arg [arg ...]]
New command to run lua scripts in read-only replicas.
Specific support details for each version, see the table below. ✓ indicates supported, x indicates not supported, - indicates that the command does not involve cross-slot access scenarios.
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
eval
x
eval_ro
x
x
x
x
x
x
x
-
evalsha
x
evalsha_ro
x
x
x
x
x
x
x
-
script debug
x
x
x
x
x
x
x
x
x
-
script exists
x
script flush
-
script load
-
script kill
-
function delete
x
x
x
x
x
x
x
-
function kill
x
x
x
x
x
x
x
-
function dump
x
x
x
x
x
x
x
-
function flush
x
x
x
x
x
x
x
-
function list
x
x
x
x
x
x
x
-
function load
x
x
x
x
x
x
x
-
function restore
x
x
x
x
x
x
x
-
function status
x
x
x
x
x
x
x
-
fcall
x
x
x
x
x
x
x
-
fcall_ro
x
x
x
x
x
x
x
-

ヘルプとサポート

この記事はお役に立ちましたか?

フィードバック