memcached实现分布式锁
@Componentpublic class BasicJob { @Autowired protected CacheUtils cacheUtils; private final int minutes = 180; public boolean judge(String key) { if (cacheUtils.get(key) == null) { if (cacheUtils.add(key, minutes, Sys
原创
2020-07-15 23:17:06 ·
470 阅读 ·
0 评论