redission-springboot-starter-1.0.0.jar

时间:2023-11-28 11:55:56
【文件属性】:

文件名称:redission-springboot-starter-1.0.0.jar

文件大小:31KB

文件格式:JAR

更新时间:2023-11-28 11:55:56

分布式锁 redis redisson

RedisExecBuilder.build().execThrows(redissonClient -> { RLock rLock = redissonClient.getLock("test_lock"); try { rLock.tryLock(); System.out.println(rLock.isLocked()); } catch (Exception ignore) { } finally { try { if (rLock != null && rLock.isLocked()) { rLock.unlock();


网友评论