From 6f3c3f1b7e2cf0ffe54a687b1e88ee51cbd44676 Mon Sep 17 00:00:00 2001
From: RuoYi <yzz_ivy@163.com>
Date: Wed, 23 Feb 2022 16:52:31 +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