Skip to content

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

Description

@silloy

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

public class RedisTemplateWxRedisOps implements WxRedisOps {

······

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions