From 34487865f3065278a5c419f5c6c05538b6fd6cec Mon Sep 17 00:00:00 2001
From: YangHuang <hy@YangHuangdeMBP.lan>
Date: Wed, 09 Mar 2022 00:46:24 +0800
Subject: [PATCH] 记录登录信息状态值改为常量

---
 ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/constant/CacheConstants.java |   13 +++++++++----
 1 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/constant/CacheConstants.java b/ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/constant/CacheConstants.java
index c43465b..913a891 100644
--- a/ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/constant/CacheConstants.java
+++ b/ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/constant/CacheConstants.java
@@ -8,12 +8,17 @@
 public class CacheConstants
 {
     /**
-     * oauth 缓存前缀
+     * 缓存有效期,默认720(分钟)
      */
-    public static final String OAUTH_ACCESS = "oauth:access:";
+    public final static long EXPIRATION = 720;
 
     /**
-     * oauth 客户端信息
+     * 缓存刷新时间,默认120(分钟)
      */
-    public static final String CLIENT_DETAILS_KEY = "oauth:client:details";
+    public final static long REFRESH_TIME = 120;
+
+    /**
+     * 权限缓存前缀
+     */
+    public final static String LOGIN_TOKEN_KEY = "login_tokens:";
 }

--
Gitblit v1.9.3