Open maozhen520 opened 3 years ago
@maozhen520 It's unlikely, at least in Jedis in recent future.
Simply speaking, you can make distributed lock based on Jedis custom made to your requirements. Lock is a collection of logics and there are many of them available online. Some of those are based on Redis and there are even some that are based on Jedis. As we are not supporting any of those, I'm not mentioning any here.
BTW, there are PRs from our honourable users about locks in this repo in case you want to look into; i.e. #2222, #2263.
This issue is marked stale. It will be closed in 30 days if it is not updated.
Can jedis provide distributed locks in the future? Similar to redisson, it can even renew the expiration time of the lock. I know that although I can directly use redisson as a redis client, our project has already used jedis , It is good, but we need to use redis to implement distributed locks, so ask, will jedis support lock-related operations later, or why not do lock-related things, I am curious about your ideas