-
I am glad to hear that jedis finally supports the cluster pipeline. Does it need create ClusterConnectionProvider + ClusterPipeline object every time , and close after done ? Example: public static void test() {
DefaultJedisClientConfig DEFAULT_CLIENT_CONFIG = DefaultJedisClientConfig.builder().build();
Set<HostAndPort> CLUSTER_NODES = new LinkedHashSet<HostAndPort>();
CLUSTER_NODES.add(new HostAndPort("127.0.0.1", 7000));
ClusterConnectionProvider provider = new ClusterConnectionProvider(CLUSTER_NODES, DEFAULT_CLIENT_CONFIG);
ClusterPipeline pipeline = new ClusterPipeline(provider);
Response<String> resp=pipeline.set("K", "V");
pipeline.sync();
pipeline.close();
} Very Confused. |
Beta Was this translation helpful? Give feedback.
Answered by
sazzad16
Dec 26, 2021
Replies: 1 comment 3 replies
-
|
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
sazzad16
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
new ClusterPipeline(CLUSTER_NODES, DEFAULT_CLIENT_CONFIG)
.