Jediscluster with object pool

I am new to Jedis, found here

I want to create a pool of JedisCluster objects using the constructor found as:

 public JedisCluster(Set<HostAndPort> nodes, final GenericObjectPoolConfig poolConfig) {
      this(nodes, DEFAULT_TIMEOUT, DEFAULT_MAX_REDIRECTIONS, poolConfig);
 }

      

Now I doubt if this implementation will handle the pool internally, or should I use Apache Commons Pool to handle JedisCluster objects?

Thanks in Advance.

+3


source to share


1 answer


JedisCluster stores pools for each node internally, and poolConfig is for creating these pools.

Hope it helps.



Thank!

+4


source







All Articles