浏览代码

update 适配 获取缓存监控列表接口 替换过期语法

疯狂的狮子Li 2 年之前
父节点
当前提交
d270f7ac8b
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      ruoyi-admin/src/main/java/com/ruoyi/web/controller/monitor/CacheController.java

+ 3 - 3
ruoyi-admin/src/main/java/com/ruoyi/web/controller/monitor/CacheController.java

@@ -51,9 +51,9 @@ public class CacheController {
     @GetMapping()
     public R<Map<String, Object>> getInfo() throws Exception {
         RedisConnection connection = connectionFactory.getConnection();
-        Properties info = connection.info();
-        Properties commandStats = connection.info("commandstats");
-        Long dbSize = connection.dbSize();
+        Properties info = connection.commands().info();
+        Properties commandStats = connection.commands().info("commandstats");
+        Long dbSize = connection.commands().dbSize();
 
         Map<String, Object> result = new HashMap<>(3);
         result.put("info", info);