3

I am new to Jedis, found here

I want to make 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 my doubt is, is this implementation going to handle the pool internally or I have to use the Apache Commons Pool to handle the objects of JedisCluster?

Thanks in Advance.

Ankur Verma
  • 5,793
  • 12
  • 57
  • 93

1 Answers1

4

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

Hope this helps.

Thanks!

Jungtaek Lim
  • 1,638
  • 1
  • 12
  • 20