update 适配 获取缓存监控列表接口 替换过期语法
This commit is contained in:
parent
c7dcbd5c3b
commit
d270f7ac8b
@ -51,9 +51,9 @@ public class CacheController {
|
||||
@GetMapping()
|
||||
public R<Map<String, Object>> 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<String, Object> result = new HashMap<>(3);
|
||||
result.put("info", info);
|
||||
|
Loading…
x
Reference in New Issue
Block a user