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

Parameter Configuration

PDF
フォーカスモード
フォントサイズ
最終更新日: 2026-03-17 18:23:48
To connect to Redis via Redisson and quickly build your client, see the table below for the recommended values of connection parameters and related connection pool configurations.
Parameter Name
Type
Default Value
Description
Recommended Value
timeout
int
3000ms
Timeout of Redis server response after the client sends a request
3000ms
retryAttempts
int
3
Number of retries for the client to send a command to Redis
3
retryInterval
int
1500ms
Time interval for the client to retry sending Redis commands
200ms
connectTimeout
int
10000ms
Maximum waiting time for the client to attempt to establish a connection with Redis
3000ms
connectionPoolSize
int
64
Redis connection pool size
200
connectionMinimumIdleSize
int
24
Minimum number of idle connections in the Redis connection pool
50
idleConnectionTimeout
int
10000ms
Timeout for idle connections in the Redis connection pool
10000ms
pingConnectionInterval
int
30000ms
Time interval for sending PING commands to the Redis server
1000ms

application.properties

In the following configuration file, connection parameters are set to recommended values. You only need to configure the Redis connection address, access password, and database.
// Redis instance access Virtual IP Address (VIP) address
tencent.redis.address=redis://XX.XX.XX.XX:6379
// Instance access password
tencent.redis.password=XXXX
// Redis database index number
tencent.redis.database=0
// Maximum waiting time for the client to attempt to establish a connection with Redis
tencent.redis.connect.timeout=3000
// Timeout for idle connections in the Redis connection pool
tencent.redis.connection.idle.timeout=10000
// Time interval for sending PING commands to the Redis server
tencent.redis.connection.ping.interval=1000
// Redis server response timeout
tencent.redis.timeout=2000
// Minimum number of idle connections in the Redis connection pool
tencent.redis.connection.pool.min.size=50
// Maximum number of connections in the Redis connection pool
tencent.redis.connection.pool.max.size=200
// Number of retries for the client to send a command to Redis
tencent.redis.retry.attempts=3
// Time interval for the client to retry sending Redis commands
tencent.redis.retry.interval=200

application.yml

In the following configuration, connection parameters are set to recommended values. You only need to configure the Redis connection address, access password, and database.
tencent:
redis:
address: redis://XX.XX.XX.XX:6379
password: XXXX
database: 0
connect.timeout: 3000
connection:
idle.timeout: 10000
ping.interval: 1000
pool:
min.size: 50
max.size: 200
timeout: 2000
retry:
attempts: 3
interval: 200

ヘルプとサポート

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

フィードバック