Commit 8a93a4d988c6d51f971b1b7300622eb9d8b17251
Merge branch 'master-jdk21' of https://gitee.com/zhijiantianya/ruoyi-vue-pro into develop
Showing
1 changed file
with
1 additions
and
1 deletions
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,7 +34,7 @@ public class RedisController { | ||
| 34 | Properties info = stringRedisTemplate.execute((RedisCallback<Properties>) RedisServerCommands::info); | 34 | Properties info = stringRedisTemplate.execute((RedisCallback<Properties>) RedisServerCommands::info); |
| 35 | Long dbSize = stringRedisTemplate.execute(RedisServerCommands::dbSize); | 35 | Long dbSize = stringRedisTemplate.execute(RedisServerCommands::dbSize); |
| 36 | Properties commandStats = stringRedisTemplate.execute(( | 36 | Properties commandStats = stringRedisTemplate.execute(( |
| 37 | - RedisCallback<Properties>) connection -> connection.commands().info()); | 37 | + RedisCallback<Properties>) connection -> connection.info("commandstats")); |
| 38 | assert commandStats != null; // 断言,避免警告 | 38 | assert commandStats != null; // 断言,避免警告 |
| 39 | // 拼接结果返回 | 39 | // 拼接结果返回 |
| 40 | return success(RedisConvert.INSTANCE.build(info, dbSize, commandStats)); | 40 | return success(RedisConvert.INSTANCE.build(info, dbSize, commandStats)); |