| Package | Description |
|---|---|
| com.litongjava.redis |
| Modifier and Type | Method and Description |
|---|---|
boolean |
RedisDb.withLock(String name,
int secondsToExpire,
int secondsToTimeout,
Func.F00 fun)
为业务封装分布式锁,免去锁的获取、释放 Redis.use().withLock("lockStock", 120, 5, () -> { //
业务操作代码 });
|
Copyright © 2025. All rights reserved.