Release Notes
Announcements
Parameter Name | Type | Default Value | Description | Recommended Value |
connectTimeout | int | 10s | Maximum waiting time for the client to attempt to establish a connection with Redis. | 2s |
commandTimeout | int | None | Timeout of Redis server response after the client sends a request. | 2s |
tcpKeepaliveTimeIdle | int | 2h | After keepalive is enabled, the time duration the connection remains idle before the keepalive probe is sent. | 30s |
tcpKeepaliveTimeInterval | int | 75s | The time interval between two keepalives after keepalive is enabled. The recommended value is 10s. | 10s |
tcpKeepaliveCount | int | 9 | After keepalive is enabled, the maximum number of Keepalive probes TCP should send before disconnecting the connection. | 3 |
tcpUserTimeout | int | 7875s | Maximum time TCP waits for acknowledgment before giving up retransmitting data and closing the connection. | 30s |
poolMaxwait | int | None | Maximum time a caller waits when no connections are available in the connection pool. | 1000ms |
poolMaxActive | int | 8 | Maximum total number of connections that the connection pool can allocate. Set this value according to specific business needs. | - |
poolMaxIdle | int | 8 | Maximum number of idle connections allowed in the connection pool. Set this value according to specific business needs. | - |
poolMinIdle | int | 0 | Minimum number of idle connections allowed in the connection pool. Set this value according to specific business needs. | - |
# Configure Host, Port, Database, and Password by one of two methods: file or code.spring.data.redis.host=XX.XX.XX.XXspring.data.redis.port=6379spring.data.redis.password=XXXXspring.data.redis.database=0#tencent.redis.host=XX.XX.XX.XX#tencent.redis.port=6379#tencent.redis.database=0#tencent.redis.password=XXXXtencent.redis.connect.timeout=2000tencent.redis.command.timeout=2000tencent.redis.tcp.keepalive.time.idle=30tencent.redis.tcp.keepalive.time.interval=10tencent.redis.tcp.keepalive.count=3tencent.redis.tcp.user.timeout=30tencent.redis.pool.max-wait=1000tencent.redis.pool.max-active=2000tencent.redis.pool.max-idle=1000tencent.redis.pool.min-idle=500
# Default Redis configuration in Spring Bootspring:data:redis:host: XX.XX.XX.XXport: 6379password: XXXXdatabase: 0# Custom Tencent Redis configurationtencent:redis:# host: XX.XX.XX.XX# port: 6379# database: 0# password: XXXXconnect.timeout: 2000command.timeout: 2000tcp:keepalive:time.idle: 30time.interval: 10count: 3user.timeout: 30pool:max-wait: 1000max-active: 2000max-idle: 1000min-idle: 500
フィードバック