mirror of
https://github.com/FatttSnake/Pinnacle-OA.git
synced 2026-04-05 15:01:23 +08:00
Set the expiration time to 30 minutes
This commit is contained in:
@@ -46,7 +46,7 @@ public class LoginServiceImpl implements ILoginService {
|
|||||||
HashMap<String, String> hashMap = new HashMap<>();
|
HashMap<String, String> hashMap = new HashMap<>();
|
||||||
hashMap.put("token", jwt);
|
hashMap.put("token", jwt);
|
||||||
|
|
||||||
redisCache.setCacheObject("login:" + jwt, loginUser, 10, TimeUnit.MINUTES);
|
redisCache.setCacheObject("login:" + jwt, loginUser, 30, TimeUnit.MINUTES);
|
||||||
|
|
||||||
return hashMap;
|
return hashMap;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user