feature(Redis监控): 添加缓存列表

This commit is contained in:
luowenfeng
2022-07-07 12:38:06 +08:00
parent 15ee097a8b
commit 40954e4e46
4 changed files with 259 additions and 17 deletions

View File

@ -8,10 +8,35 @@ export function getCache() {
})
}
// TODO
// 获取模块
export function getKeyList() {
return request({
url: '/infra/redis/get-key-list',
method: 'get'
})
}
// 获取键名列表
export function getKeyDefineKeys(keyDefine) {
return request({
url: '/infra/redis/get-key/' + keyDefine,
method: 'get'
})
}
// 获取缓存内容
export function getKeyValue(keyDefine, key) {
return request({
url: '/infra/redis/get-key/' + keyDefine + "/" + key,
method: 'get'
})
}
// 根据键名删除缓存
export function clearCacheKey(key) {
return request({
url: '/infra/redis/clearCacheKey/' + key,
method: 'delete'
})
}