1
0
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:
2023-05-11 22:53:00 +08:00
parent ee4a404f2d
commit 7fa8ebc7aa

View File

@@ -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;
} }