| | |
| | | @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); |