Quantcast
Channel: Active questions tagged redis+java - Stack Overflow
Viewing all articles
Browse latest Browse all 2204

Does Spring's JedisConnectionFactory support the new JedisCluster?

$
0
0

We are migrating our Redis stack over to Redis Cluster.

In portions of our application, this has meant that we have had to replace the Jedis object with the JedisCluster object.

In our Spring client, we use the JedisConnectionFactory to persist sessions to redis. However, this class does not appear to support JedisCluster.

Any thoughts on how one would go about wiring up a Spring application to a Redis Cluster?

I noticed that this factory implements RedisConnectionFactory which requires an instance of RedisConnection to be returned. However, this assumes that only one connection to a Redis server would be required, which is not the case in RedisCluster (it takes a set of redis servers and creates connections for all of them). As a result, I am not sure what interfaces one would need to implement in order to bring Spring into our new stack.

Any help would be greatly appreciated. Thanks!


Viewing all articles
Browse latest Browse all 2204

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>