abelaska / jedis-lock

Jedis distributed lock support
203 stars 118 forks source link

Seems jedis lock doesn't works with redis cluster. #13

Open sagarsitap596 opened 5 years ago

sagarsitap596 commented 5 years ago

I have a redis cluster so I use Jedis Cluster for connecting to redis.

Jedis jedis = new Jedis("localhost"); JedisLock lock = new JedisLock(jedis, "lockname", 10000, 30000);

Since JedisLock requires Jedis object and not JedisCluster. how do i use it to use Jedis l;ick functionality in redis clsuter

MiltonLai commented 5 years ago

I have made it work with Jedis Cluster, please see my forked version.