当前位置:   article > 正文

redis.clients.jedis.exceptions.JedisDataException: MOVED 13102 127.0.0.1_redis execution error !redis.clients.jedis.excepti

redis execution error !redis.clients.jedis.exceptions.jedismoveddataexceptio

这个异常上网查了很久才知道原因:

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 模式,所以一次只能执行一个操作


声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/2023面试高手/article/detail/638455
推荐阅读
相关标签
  

闽ICP备14008679号