| | |
| | | import java.util.Map;
|
| | | import java.util.Properties;
|
| | | import java.util.Set;
|
| | | import java.util.TreeSet;
|
| | | import org.springframework.beans.factory.annotation.Autowired;
|
| | | import org.springframework.data.redis.core.RedisCallback;
|
| | | import org.springframework.data.redis.core.RedisTemplate;
|
| | |
| | | caches.add(new SysCache(CacheConstants.CAPTCHA_CODE_KEY, "验证码"));
|
| | | caches.add(new SysCache(CacheConstants.REPEAT_SUBMIT_KEY, "防重提交"));
|
| | | caches.add(new SysCache(CacheConstants.RATE_LIMIT_KEY, "限流处理"));
|
| | | caches.add(new SysCache(CacheConstants.PWD_ERR_CNT_KEY, "密码错误次数"));
|
| | | }
|
| | |
|
| | | @PreAuthorize("@ss.hasPermi('monitor:cache:list')")
|
| | |
| | | public AjaxResult getCacheKeys(@PathVariable String cacheName)
|
| | | {
|
| | | Set<String> cacheKeys = redisTemplate.keys(cacheName + "*");
|
| | | return AjaxResult.success(cacheKeys);
|
| | | return AjaxResult.success(new TreeSet<>(cacheKeys));
|
| | | }
|
| | |
|
| | | @PreAuthorize("@ss.hasPermi('monitor:cache:list')")
|