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();