提交 | 用户 | 时间
|
e57a89
|
1 |
import request from '@/utils/request' |
懒 |
2 |
|
|
3 |
// 查询缓存详细 |
|
4 |
export function getCache() { |
|
5 |
return request({ |
|
6 |
url: '/monitor/cache', |
|
7 |
method: 'get' |
|
8 |
}) |
|
9 |
} |
|
10 |
|
|
11 |
// 查询缓存名称列表 |
|
12 |
export function listCacheName() { |
|
13 |
return request({ |
|
14 |
url: '/monitor/cache/getNames', |
|
15 |
method: 'get' |
|
16 |
}) |
|
17 |
} |
|
18 |
|
|
19 |
// 查询缓存键名列表 |
|
20 |
export function listCacheKey(cacheName) { |
|
21 |
return request({ |
|
22 |
url: '/monitor/cache/getKeys/' + cacheName, |
|
23 |
method: 'get' |
|
24 |
}) |
|
25 |
} |
|
26 |
|
|
27 |
// 查询缓存内容 |
|
28 |
export function getCacheValue(cacheName, cacheKey) { |
|
29 |
return request({ |
|
30 |
url: '/monitor/cache/getValue/' + cacheName + '/' + cacheKey, |
|
31 |
method: 'get' |
|
32 |
}) |
|
33 |
} |
|
34 |
|
|
35 |
// 清理指定名称缓存 |
|
36 |
export function clearCacheName(cacheName) { |
|
37 |
return request({ |
|
38 |
url: '/monitor/cache/clearCacheName/' + cacheName, |
|
39 |
method: 'delete' |
|
40 |
}) |
|
41 |
} |
|
42 |
|
|
43 |
// 清理指定键名缓存 |
|
44 |
export function clearCacheKey(cacheKey) { |
|
45 |
return request({ |
|
46 |
url: '/monitor/cache/clearCacheKey/' + cacheKey, |
|
47 |
method: 'delete' |
|
48 |
}) |
|
49 |
} |
|
50 |
|
|
51 |
// 清理全部缓存 |
|
52 |
export function clearCacheAll() { |
|
53 |
return request({ |
|
54 |
url: '/monitor/cache/clearCacheAll', |
|
55 |
method: 'delete' |
|
56 |
}) |
|
57 |
} |