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 ?

Submit an answer

This textbox defaults to using Markdown to format your answer.

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

Sign In or Sign Up to Answer