Commit ef6dd91f2db7c2a8e53fcdb26b2cf12224d50dcd
1 parent
2fcb54b5
智障的我,补下 sql 脚本
Showing
1 changed file
with
2 additions
and
2 deletions
src/main/java/cn/iocoder/dashboard/modules/infra/controller/redis/RedisController.java
| ... | ... | @@ -30,9 +30,9 @@ public class RedisController { |
| 30 | 30 | @Resource |
| 31 | 31 | private StringRedisTemplate stringRedisTemplate; |
| 32 | 32 | |
| 33 | + @GetMapping("/get-monitor-info") | |
| 33 | 34 | @ApiOperation("获得 Redis 监控信息") |
| 34 | 35 | @PreAuthorize("@ss.hasPermission('infra:redis:get-monitor-info')") |
| 35 | - @GetMapping("/get-monitor-info") | |
| 36 | 36 | public CommonResult<InfRedisMonitorRespVO> getRedisMonitorInfo() { |
| 37 | 37 | // 获得 Redis 统计信息 |
| 38 | 38 | Properties info = stringRedisTemplate.execute((RedisCallback<Properties>) RedisServerCommands::info); |
| ... | ... | @@ -44,9 +44,9 @@ public class RedisController { |
| 44 | 44 | return success(RedisConvert.INSTANCE.build(info, dbSize, commandStats)); |
| 45 | 45 | } |
| 46 | 46 | |
| 47 | + @GetMapping("/get-key-list") | |
| 47 | 48 | @ApiOperation("获得 Redis Key 列表") |
| 48 | 49 | @PreAuthorize("@ss.hasPermission('infra:redis:get-key-list')") |
| 49 | - @GetMapping("/get-key-list") | |
| 50 | 50 | public CommonResult<List<InfRedisKeyRespVO>> getKeyList() { |
| 51 | 51 | List<RedisKeyDefine> keyDefines = RedisKeyRegistry.list(); |
| 52 | 52 | return success(RedisConvert.INSTANCE.convertList(keyDefines)); | ... | ... |