MichelleChung
2022-08-13 0936aaccea661743b37ac948b9bfec5093e1f93b
ruoyi-admin/src/main/java/com/ruoyi/web/controller/monitor/CacheController.java
@@ -32,13 +32,13 @@
    static {
        CACHES.add(new SysCache(CacheConstants.LOGIN_TOKEN_KEY, "用户信息"));
        CACHES.add(new SysCache(CacheConstants.ONLINE_TOKEN_KEY, "在线用户"));
        CACHES.add(new SysCache(CacheConstants.LOGIN_ERROR, "登陆错误"));
        CACHES.add(new SysCache(CacheConstants.SYS_CONFIG_KEY, "配置信息"));
        CACHES.add(new SysCache(CacheConstants.SYS_DICT_KEY, "数据字典"));
        CACHES.add(new SysCache(CacheConstants.CAPTCHA_CODE_KEY, "验证码"));
        CACHES.add(new SysCache(CacheConstants.REPEAT_SUBMIT_KEY, "防重提交"));
        CACHES.add(new SysCache(CacheConstants.RATE_LIMIT_KEY, "限流处理"));
        CACHES.add(new SysCache(OssConstant.SYS_OSS_KEY, "OSS配置"));
        CACHES.add(new SysCache(CacheConstants.PWD_ERR_CNT_KEY, "密码错误次数"));
    }
    /**
@@ -87,8 +87,8 @@
    @SaCheckPermission("monitor:cache:list")
    @GetMapping("/getKeys/{cacheName}")
    public R<Collection<String>> getCacheKeys(@PathVariable String cacheName) {
        Collection<String> cacheKyes = RedisUtils.keys(cacheName + "*");
        return R.ok(cacheKyes);
        Collection<String> cacheKeys = RedisUtils.keys(cacheName + "*");
        return R.ok(cacheKeys);
    }
    /**