refactor: 优化过期时间处理

This commit is contained in:
zhouhao
2025-04-17 12:12:55 +08:00
parent 8a73a2281d
commit d2fb65bdce

View File

@@ -249,7 +249,7 @@ public class RedisUserTokenManager implements UserTokenManager {
return userTokenStore.putAll(key, map);
}))
.then(Mono.defer(() -> {
if (expires > 0) {
if (event.getExpires() > 0) {
return operations.expire(key, Duration.ofMillis(event.getExpires()));
}
return Mono.empty();