Looking for an example of Jedis with Sentinel [closed]
I am looking for an example of jedis using the redis sentinel. I am not able to use the jedis facilities for sentinel, and I could not find any good example or documentation. ERNESTO ARROYO RON The Jedis library is an awesome solution, unfortunately with bad documentation. So, @Autowired private JedisSentinelPool pool; public void mymethod() { Jedis jedis = null; try { jedis = pool.getResource(); jedis.hset(.... } catch (JedisException je) { throw je; } finally { if (jedis != null) pool.returnResource(jedis); } } As I am using Spring, I need: <bean id="redisSentinel" class="redis.clients.jedis