Commit a4c7946830f38ff8b21c48a736c755faa588962a

Authored by 芋道源码
Committed by Gitee
2 parents 1f4889c6 e4f1564a

!887 fix: 获取redis命令统计指令有误

Merge pull request !887 from dhb52/N/A
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 {
34 34 Properties info = stringRedisTemplate.execute((RedisCallback<Properties>) RedisServerCommands::info);
35 35 Long dbSize = stringRedisTemplate.execute(RedisServerCommands::dbSize);
36 36 Properties commandStats = stringRedisTemplate.execute((
37   - RedisCallback<Properties>) connection -> connection.commands().info());
  37 + RedisCallback<Properties>) connection -> connection.info("commandstats"));
38 38 assert commandStats != null; // 断言,避免警告
39 39 // 拼接结果返回
40 40 return success(RedisConvert.INSTANCE.build(info, dbSize, commandStats));
... ...