Prechádzať zdrojové kódy

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

疯狂的狮子Li 2 rokov pred
rodič
commit
d270f7ac8b

+ 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);