From b40e5c19b2662204e7ffafa34b229e0f7d716d9a Mon Sep 17 00:00:00 2001
From: RuoYi <yzz_ivy@163.com>
Date: Mon, 10 Jan 2022 15:02:13 +0800
Subject: [PATCH] 升级Spring Cloud相关组件到最新版本

---
 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