|
@@ -271,8 +271,10 @@ public class RedisUserTokenManager implements UserTokenManager {
|
|
|
SimpleUserToken inCache = localCache.get(token);
|
|
|
if (inCache != null && inCache.isNormal()) {
|
|
|
inCache.setLastRequestTime(System.currentTimeMillis());
|
|
|
- //异步touch
|
|
|
- touchSink.next(inCache);
|
|
|
+ if (inCache.getMaxInactiveInterval() > 0) {
|
|
|
+ //异步touch
|
|
|
+ touchSink.next(inCache);
|
|
|
+ }
|
|
|
return Mono.empty();
|
|
|
}
|
|
|
return getByToken(token)
|