|
|
@@ -283,8 +283,9 @@ public class RedissonUtils {
|
|
|
|
|
|
public static Long getAtomicLong(String name,Long expired) {
|
|
|
RAtomicLong atomicLong = redissonUtils.redissonClient.getAtomicLong(name);
|
|
|
+ long number = atomicLong.incrementAndGet();
|
|
|
atomicLong.expire(expired <= 0 ? Duration.ofSeconds(DEFAULT_EXPIRED) : Duration.ofSeconds(expired));
|
|
|
- return atomicLong.incrementAndGet();
|
|
|
+ return number;
|
|
|
}
|
|
|
|
|
|
public static void main(String[] args) {
|