How to use JedisCluster pub/sub in 4.0.1 jedis library? #2825
Unanswered
sodrulamin
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to update jedis library to latest(4.0.1) one. But in this latest library I think the subscribe method has been shifted to JedisPubSub class or I am not sure where.
But now I can't find any working example of pub/sub module for cluster. I have so far tried,
//pool configuration
GenericObjectPoolConfig poolConfig = new GenericObjectPoolConfig<>();
poolConfig.setMinIdle(5);
poolConfig.setMaxIdle(100);
poolConfig.setMaxWait(Duration.ofMillis(5000));
Beta Was this translation helpful? Give feedback.
All reactions