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

 

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

相关文章:

  • 2021-09-12
  • 2021-06-28
  • 2022-12-23
  • 2021-07-15
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-14
猜你喜欢
  • 2021-11-06
  • 2022-12-23
  • 2022-03-02
  • 2021-10-31
  • 2021-11-07
  • 2021-05-14
  • 2022-12-23
相关资源
相似解决方案