0

I am using Lettuce 4.5.0 and Spring-data-redis 1.8.0. I am trying to use pub/sub with Redis 4.0 cluster using RedisMessageListenerContainer. But I am getting this error:

RedisMessageListenerContainer: SubscriptionTask aborted with exception: org.springframework.data.redis.RedisSystemException: Unknown redis exception; nested exception is java.lang.ClassCastException: com.lambdaworks.redis.cluster.RedisClusterClient cannot be cast to com.lambdaworks.redis.RedisClient.

barbsan
  • 3,418
  • 11
  • 21
  • 28
Ritu S
  • 1
  • 1

1 Answers1

0

Thanks to the community. The Pub/Sub functionality of Spring Data Redis 1.8 does not work with Lettuce and Redis Cluster. This is fixed with version 2.1.

mp911de
  • 17,546
  • 2
  • 55
  • 95