|
@ -7,6 +7,7 @@ import java.util.List; |
|
|
import java.util.Map; |
|
|
import java.util.Map; |
|
|
import java.util.Properties; |
|
|
import java.util.Properties; |
|
|
import java.util.Set; |
|
|
import java.util.Set; |
|
|
|
|
|
import java.util.TreeSet; |
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
import org.springframework.data.redis.core.RedisCallback; |
|
|
import org.springframework.data.redis.core.RedisCallback; |
|
|
import org.springframework.data.redis.core.RedisTemplate; |
|
|
import org.springframework.data.redis.core.RedisTemplate; |
|
@ -80,7 +81,7 @@ public class CacheController |
|
|
public AjaxResult getCacheKeys(@PathVariable String cacheName) |
|
|
public AjaxResult getCacheKeys(@PathVariable String cacheName) |
|
|
{ |
|
|
{ |
|
|
Set<String> cacheKeys = redisTemplate.keys(cacheName + "*"); |
|
|
Set<String> cacheKeys = redisTemplate.keys(cacheName + "*"); |
|
|
return AjaxResult.success(cacheKeys); |
|
|
return AjaxResult.success(new TreeSet<>(cacheKeys)); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@PreAuthorize("@ss.hasPermi('monitor:cache:list')") |
|
|
@PreAuthorize("@ss.hasPermi('monitor:cache:list')") |
|
|