ankurgarg
By:
ankurgarg

Redis client: custom connections manager

June 30, 2017 188 views
Redis Java Arch Linux

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 ?

Be the first one to answer this question.