From d270f7ac8bd15611801e12d1e039ca4371b4174d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=96=AF=E7=8B=82=E7=9A=84=E7=8B=AE=E5=AD=90Li?= <15040126243@163.com> Date: Fri, 13 Jan 2023 22:56:14 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E9=80=82=E9=85=8D=20=E8=8E=B7?= =?UTF-8?q?=E5=8F=96=E7=BC=93=E5=AD=98=E7=9B=91=E6=8E=A7=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=20=E6=9B=BF=E6=8D=A2=E8=BF=87=E6=9C=9F?= =?UTF-8?q?=E8=AF=AD=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/ruoyi/web/controller/monitor/CacheController.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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);