Redis client: custom connections manager

Posted June 30, 2017 1.8k views
Arch LinuxJavaRedis

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 ?

Submit an answer

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!