Ver código fonte

!887 fix: 获取redis命令统计指令有误
Merge pull request !887 from dhb52/N/A

芋道源码 1 ano atrás
pai
commit
a4c7946830

+ 1 - 1
yudao-module-infra/yudao-module-infra-biz/src/main/java/cn/iocoder/yudao/module/infra/controller/admin/redis/RedisController.java

@@ -34,7 +34,7 @@ public class RedisController {
         Properties info = stringRedisTemplate.execute((RedisCallback<Properties>) RedisServerCommands::info);
         Long dbSize = stringRedisTemplate.execute(RedisServerCommands::dbSize);
         Properties commandStats = stringRedisTemplate.execute((
-                RedisCallback<Properties>) connection -> connection.commands().info());
+                RedisCallback<Properties>) connection -> connection.info("commandstats"));
         assert commandStats != null; // 断言,避免警告
         // 拼接结果返回
         return success(RedisConvert.INSTANCE.build(info, dbSize, commandStats));