mirror of
https://gitee.com/huangge1199_admin/vue-pro.git
synced 2025-01-31 09:30:05 +08:00
fix: 获取redis命令统计指令有误
Signed-off-by: dhb52 <dhb52@126.com>
This commit is contained in:
parent
2aade25e78
commit
e4f1564ade
@ -34,7 +34,7 @@ public class RedisController {
|
|||||||
Properties info = stringRedisTemplate.execute((RedisCallback<Properties>) RedisServerCommands::info);
|
Properties info = stringRedisTemplate.execute((RedisCallback<Properties>) RedisServerCommands::info);
|
||||||
Long dbSize = stringRedisTemplate.execute(RedisServerCommands::dbSize);
|
Long dbSize = stringRedisTemplate.execute(RedisServerCommands::dbSize);
|
||||||
Properties commandStats = stringRedisTemplate.execute((
|
Properties commandStats = stringRedisTemplate.execute((
|
||||||
RedisCallback<Properties>) connection -> connection.commands().info());
|
RedisCallback<Properties>) connection -> connection.info("commandstats"));
|
||||||
assert commandStats != null; // 断言,避免警告
|
assert commandStats != null; // 断言,避免警告
|
||||||
// 拼接结果返回
|
// 拼接结果返回
|
||||||
return success(RedisConvert.INSTANCE.build(info, dbSize, commandStats));
|
return success(RedisConvert.INSTANCE.build(info, dbSize, commandStats));
|
||||||
|
Loading…
Reference in New Issue
Block a user