mirror of
https://gitee.com/hhyykk/ipms-sjy.git
synced 2025-07-14 11:05:06 +08:00
!211 Redis 监控添加缓存列表
Merge pull request !211 from 圆梦巨人/feature/cache-list
This commit is contained in:
@ -8,10 +8,35 @@ export function getCache() {
|
||||
})
|
||||
}
|
||||
|
||||
// TODO
|
||||
// 获取模块
|
||||
export function getKeyList() {
|
||||
return request({
|
||||
url: '/infra/redis/get-key-list',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 获取键名列表
|
||||
export function getKeyDefines(keyDefine) {
|
||||
return request({
|
||||
url: '/infra/redis/get-key-Defines?keyDefine=' + keyDefine,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 获取缓存内容
|
||||
export function getKeyValue(keyDefine, key) {
|
||||
return request({
|
||||
url: '/infra/redis/get-key-value?keyDefine=' + keyDefine + "&cacheKey=" + key,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 根据键名删除缓存
|
||||
export function deleteKeyValue(key) {
|
||||
return request({
|
||||
url: '/infra/redis/delete-key-value?cacheKey=' + key,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user