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 74585fc4..12662ece 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 @@ -51,9 +51,9 @@ public class CacheController { @GetMapping() public R> 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 result = new HashMap<>(3); result.put("info", info);