Open
Description
spring-boot version: 2.7.7
When the timeout period is set on the redis server, the client needs to perform connection timeout detection in time. However, the configuration provided in the current spring-boot-autoconfigure is incomplete:
org.springframework.boot.autoconfigure.data.redis.JedisConnectionConfiguration#jedisPoolConfig
org.springframework.boot.autoconfigure.data.redis.RedisProperties.Pool
I expect to be able to inject the following configuration automatically
org.apache.commons.pool2.impl.BaseObjectPoolConfig#durationBetweenEvictionRuns
org.apache.commons.pool2.impl.BaseObjectPoolConfig#minEvictableIdleDuration
org.apache.commons.pool2.impl.BaseObjectPoolConfig#numTestsPerEvictionRun
org.apache.commons.pool2.impl.BaseObjectPoolConfig#testOnBorrow
In addition to durationBetweenEvictionRuns
, three other key configuration does not support automatic injection.
Now that you can inject durationBetweenEvictionRuns
automatically, then the other three configuration is also should be automatic injection