fix 修复 redisson发号器未初始化发号器步长导致过期时间未生效的问题

Signed-off-by: 秋辞未寒 <545073804@qq.com>
dev
秋辞未寒 12 months ago committed by Gitee
parent 8101136d58
commit 454be09d05
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

@ -59,10 +59,10 @@ public class SequenceUtils {
stepValue = DEFAULT_STEP_VALUE;
}
RIdGenerator idGenerator = REDISSON_CLIENT.getIdGenerator(key);
// 设置过期时间
idGenerator.expire(expireTime);
// 设置初始值和步长
idGenerator.tryInit(initValue, stepValue);
// 设置过期时间
idGenerator.expire(expireTime);
return idGenerator;
}

Loading…
Cancel
Save