mirror of
https://github.com/hs-web/hsweb-framework.git
synced 2026-06-03 11:24:34 +08:00
优化
This commit is contained in:
@@ -56,8 +56,8 @@ public class RedisUserTokenManager implements UserTokenManager {
|
||||
.flatMap(token -> {
|
||||
String key = getTokenRedisKey(token.getToken());
|
||||
return Mono
|
||||
.zip(userTokenStore.put(key, "lastRequestTime", token.getLastRequestTime()),
|
||||
operations.expire(key, Duration.ofMillis(token.getMaxInactiveInterval())))
|
||||
.zip(this.userTokenStore.put(key, "lastRequestTime", token.getLastRequestTime()),
|
||||
this.operations.expire(key, Duration.ofMillis(token.getMaxInactiveInterval())))
|
||||
.then();
|
||||
})
|
||||
.onErrorResume(err -> Mono.empty()))
|
||||
|
||||
Reference in New Issue
Block a user