From 7af22453bad2e5604a46c190c123c4f289b05b54 Mon Sep 17 00:00:00 2001
From: 疯狂的狮子li <15040126243@163.com>
Date: 星期二, 23 十一月 2021 20:19:51 +0800
Subject: [PATCH] update 更新 redis.conf 存储策略 aof 与 rdb 配置参数
---
ruoyi-common/src/main/java/com/ruoyi/common/constant/Constants.java | 22 ++++++----------------
1 files changed, 6 insertions(+), 16 deletions(-)
diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/constant/Constants.java b/ruoyi-common/src/main/java/com/ruoyi/common/constant/Constants.java
index 5f8964e..9c91a1a 100644
--- a/ruoyi-common/src/main/java/com/ruoyi/common/constant/Constants.java
+++ b/ruoyi-common/src/main/java/com/ruoyi/common/constant/Constants.java
@@ -7,8 +7,7 @@
*
* @author ruoyi
*/
-public class Constants
-{
+public class Constants {
/**
* UTF-8 瀛楃闆�
*/
@@ -75,6 +74,11 @@
public static final String REPEAT_SUBMIT_KEY = "repeat_submit:";
/**
+ * 闄愭祦 redis key
+ */
+ public static final String RATE_LIMIT_KEY = "rate_limit:";
+
+ /**
* 楠岃瘉鐮佹湁鏁堟湡锛堝垎閽燂級
*/
public static final Integer CAPTCHA_EXPIRATION = 2;
@@ -129,18 +133,4 @@
*/
public static final String SYS_DICT_KEY = "sys_dict:";
- /**
- * 璧勬簮鏄犲皠璺緞 鍓嶇紑
- */
- public static final String RESOURCE_PREFIX = "/profile";
-
- /**
- * RMI 杩滅▼鏂规硶璋冪敤
- */
- public static final String LOOKUP_RMI = "rmi://";
-
- /**
- * 璧勬簮鏄犲皠璺緞 鍓嶇紑
- */
- public static final String REDIS_LOCK_KEY = "redis_lock:";
}
--
Gitblit v1.9.3