From 3e422db402411b6dc4fff5f1ad7ec8f7f6df11ee Mon Sep 17 00:00:00 2001 From: Dftre <3066417822@qq.com> Date: Tue, 1 Oct 2024 13:15:31 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A5=E5=85=A8=E7=BC=BA=E5=B0=91=E7=9A=84?= =?UTF-8?q?=E7=BC=93=E5=AD=98=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/ruoyi/web/controller/monitor/CacheController.java | 3 +++ .../src/main/java/com/ruoyi/ehcache/config/Ehcache3Config.java | 1 + 2 files changed, 4 insertions(+) diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/monitor/CacheController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/monitor/CacheController.java index a67a509..649af81 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/monitor/CacheController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/monitor/CacheController.java @@ -47,6 +47,9 @@ public class CacheController caches.add(new SysCache(CacheConstants.REPEAT_SUBMIT_KEY, "防重提交")); caches.add(new SysCache(CacheConstants.RATE_LIMIT_KEY, "限流处理")); caches.add(new SysCache(CacheConstants.PWD_ERR_CNT_KEY, "密码错误次数")); + caches.add(new SysCache(CacheConstants.IP_ERR_CNT_KEY, "IP错误次数")); + caches.add(new SysCache(CacheConstants.FILE_MD5_PATH_KEY, "path-md5")); + caches.add(new SysCache(CacheConstants.FILE_PATH_MD5_KEY, "md5-path")); } diff --git a/ruoyi-plugins/ruoyi-ehcache/src/main/java/com/ruoyi/ehcache/config/Ehcache3Config.java b/ruoyi-plugins/ruoyi-ehcache/src/main/java/com/ruoyi/ehcache/config/Ehcache3Config.java index 753aefa..e024a73 100644 --- a/ruoyi-plugins/ruoyi-ehcache/src/main/java/com/ruoyi/ehcache/config/Ehcache3Config.java +++ b/ruoyi-plugins/ruoyi-ehcache/src/main/java/com/ruoyi/ehcache/config/Ehcache3Config.java @@ -40,6 +40,7 @@ public class Ehcache3Config { cacheManager.createCache("repeat_submit", mutableConfiguration); cacheManager.createCache("captcha_codes", mutableConfiguration); cacheManager.createCache("login_tokens", mutableConfiguration); + cacheManager.createCache("ip_err_cnt_key", mutableConfiguration); cacheManager.createCache("rate_limit", mutableConfiguration); cacheManager.createCache("pwd_err_cnt", mutableConfiguration);