[redis] redis.clients.jedis.exceptions.JedisDataException: MOVED 13102 127.0.0.1


 

這個異常上網查了很久才知道原因:

 

MOVED indicates that you're using Redis Cluster. ShardedJedis is not for Redis Cluster, so you should use JedisCluster instead. Please note that JedisCluster doesn't have pipeline mode, so you may want to send your operation one by one.

大概意思就是ShardedJedis 不能用於Redis集群,要用JedisCluster 代替ShardedJedis 才可以,而且JedisCluster 還沒有pipeline 模式,所以一次只能執行一個操作.

 

 

轉自:

http://blog.csdn.net/chenyuangege/article/details/51519370


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM