补全缺少的缓存块

This commit is contained in:
Dftre 2024-10-01 13:15:31 +08:00
parent 2bd8ae351d
commit 3e422db402
2 changed files with 4 additions and 0 deletions

View File

@ -47,6 +47,9 @@ public class CacheController
caches.add(new SysCache(CacheConstants.REPEAT_SUBMIT_KEY, "防重提交")); caches.add(new SysCache(CacheConstants.REPEAT_SUBMIT_KEY, "防重提交"));
caches.add(new SysCache(CacheConstants.RATE_LIMIT_KEY, "限流处理")); caches.add(new SysCache(CacheConstants.RATE_LIMIT_KEY, "限流处理"));
caches.add(new SysCache(CacheConstants.PWD_ERR_CNT_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"));
} }

View File

@ -40,6 +40,7 @@ public class Ehcache3Config {
cacheManager.createCache("repeat_submit", mutableConfiguration); cacheManager.createCache("repeat_submit", mutableConfiguration);
cacheManager.createCache("captcha_codes", mutableConfiguration); cacheManager.createCache("captcha_codes", mutableConfiguration);
cacheManager.createCache("login_tokens", mutableConfiguration); cacheManager.createCache("login_tokens", mutableConfiguration);
cacheManager.createCache("ip_err_cnt_key", mutableConfiguration);
cacheManager.createCache("rate_limit", mutableConfiguration); cacheManager.createCache("rate_limit", mutableConfiguration);
cacheManager.createCache("pwd_err_cnt", mutableConfiguration); cacheManager.createCache("pwd_err_cnt", mutableConfiguration);