From f138375f15c072d10335c20ecec9b35f1da78ee4 Mon Sep 17 00:00:00 2001 From: 无关风月 <443237572@qq.com> Date: 星期三, 03 七月 2024 16:17:59 +0800 Subject: [PATCH] bug修改 --- 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