From c72da9e3cafcd600eb853084aa2caf84ac550d79 Mon Sep 17 00:00:00 2001
From: xuhy <3313886187@qq.com>
Date: 星期一, 17 三月 2025 17:10:17 +0800
Subject: [PATCH] 修改配置
---
ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/constant/CacheConstants.java | 14 +++++++++-----
1 files changed, 9 insertions(+), 5 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 1d2510e..1258c10 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
@@ -2,15 +2,14 @@
/**
* 缓存常量信息
- *
+ *
* @author ruoyi
*/
-public class CacheConstants
-{
+public class CacheConstants {
/**
- * 缓存有效期,默认720(分钟)
+ * 缓存有效期,默认720(分钟)一周
*/
- public final static long EXPIRATION = 720;
+ public final static long EXPIRATION = 10080;
/**
* 缓存刷新时间,默认120(分钟)
@@ -33,6 +32,11 @@
public final static String LOGIN_TOKEN_KEY = "login_tokens:";
/**
+ * 学习端权限缓存前缀
+ */
+ public final static String LOGIN_TOKEN_KEY_STUDY = "login_tokens_study:";
+
+ /**
* 验证码 redis key
*/
public static final String CAPTCHA_CODE_KEY = "captcha_codes:";
--
Gitblit v1.7.1