Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RedisTemplateWxRedisOps 要的锁是 ReentrantLock ,需要使用分布式锁 #1592

Closed
silloy opened this issue May 30, 2020 · 1 comment
Closed
Assignees

Comments

@silloy
Copy link
Member

silloy commented May 30, 2020

RedisTemplateWxRedisOps 要的锁是 ReentrantLock ,需要使用分布式锁
具体代码

public class RedisTemplateWxRedisOps implements WxRedisOps {

······

  @Override
  public Lock getLock(String key) {
    return new ReentrantLock();
  }
}
@lkqm
Copy link

lkqm commented May 30, 2020

这边后续会实现一个基于RedisTemplate的分布式锁

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants