Multithreading – redis cluster in multithreading
•
Java
I am currently using the redis cluster mode with three primary instances. I use jedis (Java client) in the listening server. Each data I receive creates a new thread, and then the thread is updated in redis
My problem is how to use redis cluster instance in multi threads of pool configuration
Solution
Jediscluster is thread safe It contains the jedispool of each node internally, so you don't have to worry about using multithreading to process jediscluster instances
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码