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