tencent cloud

Tencent Cloud Distributed Cache (Redis OSS-Compatible)

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

도움말 및 지원

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

피드백