Skip to content

Provide more configuration properties for Jedis's connection pool #33814

Open
@yhmingyue

Description

@yhmingyue

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions