Join 1M+ other developers and:
- Get help and share knowledge in Q&A
- Subscribe to topics of interest
- Get courses & tools that help you grow as a developer or small business owner
Redis client: custom connections manager
I am using spring’s JedisConnectionFactory to manage and connect to Redis from my Java application.
JedisConnectionFactory internally uses JedisPool and GenericObjectPool.
Our ask is to create new Redis connections as the pool size exhausts or crosses a certain threshold.
The latest versions of GenericObjectPool does not have option of growing pool size dynamically. I also could not find a way to pass a custom object pool in Jedis.
Is there a way to do this at client side using Jedis ?