update 适配 获取缓存监控列表接口 替换过期语法
This commit is contained in:
parent
c7dcbd5c3b
commit
d270f7ac8b
@ -51,9 +51,9 @@ public class CacheController {
|
|||||||
@GetMapping()
|
@GetMapping()
|
||||||
public R<Map<String, Object>> getInfo() throws Exception {
|
public R<Map<String, Object>> getInfo() throws Exception {
|
||||||
RedisConnection connection = connectionFactory.getConnection();
|
RedisConnection connection = connectionFactory.getConnection();
|
||||||
Properties info = connection.info();
|
Properties info = connection.commands().info();
|
||||||
Properties commandStats = connection.info("commandstats");
|
Properties commandStats = connection.commands().info("commandstats");
|
||||||
Long dbSize = connection.dbSize();
|
Long dbSize = connection.commands().dbSize();
|
||||||
|
|
||||||
Map<String, Object> result = new HashMap<>(3);
|
Map<String, Object> result = new HashMap<>(3);
|
||||||
result.put("info", info);
|
result.put("info", info);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user