新增缓存列表菜单功能
This commit is contained in:
		| @@ -7,3 +7,51 @@ export function getCache() { | ||||
|     method: 'get' | ||||
|   }) | ||||
| } | ||||
|  | ||||
| // 查询缓存名称列表 | ||||
| export function listCacheName() { | ||||
|   return request({ | ||||
|     url: '/monitor/cache/getNames', | ||||
|     method: 'get' | ||||
|   }) | ||||
| } | ||||
|  | ||||
| // 查询缓存键名列表 | ||||
| export function listCacheKey(cacheName) { | ||||
|   return request({ | ||||
|     url: '/monitor/cache/getKeys/' + cacheName, | ||||
|     method: 'get' | ||||
|   }) | ||||
| } | ||||
|  | ||||
| // 查询缓存内容 | ||||
| export function getCacheValue(cacheName, cacheKey) { | ||||
|   return request({ | ||||
|     url: '/monitor/cache/getValue/' + cacheName + '/' + cacheKey, | ||||
|     method: 'get' | ||||
|   }) | ||||
| } | ||||
|  | ||||
| // 清理指定名称缓存 | ||||
| export function clearCacheName(cacheName) { | ||||
|   return request({ | ||||
|     url: '/monitor/cache/clearCacheName/' + cacheName, | ||||
|     method: 'delete' | ||||
|   }) | ||||
| } | ||||
|  | ||||
| // 清理指定键名缓存 | ||||
| export function clearCacheKey(cacheKey) { | ||||
|   return request({ | ||||
|     url: '/monitor/cache/clearCacheKey/' + cacheKey, | ||||
|     method: 'delete' | ||||
|   }) | ||||
| } | ||||
|  | ||||
| // 清理全部缓存 | ||||
| export function clearCacheAll() { | ||||
|   return request({ | ||||
|     url: '/monitor/cache/clearCacheAll', | ||||
|     method: 'delete' | ||||
|   }) | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user