mirror of
https://gitee.com/huangge1199_admin/vue-pro.git
synced 2024-11-30 03:01:53 +08:00
feat: redis api
This commit is contained in:
parent
882bbb2187
commit
cb091d1853
@ -23,3 +23,21 @@ export const getKeyListApi = (keyTemplate: string) => {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
// 获取缓存内容
|
||||||
|
export const getKeyValue = (key: string) => {
|
||||||
|
return request.get({ url: '/infra/redis/get-key-value?key=' + key })
|
||||||
|
}
|
||||||
|
|
||||||
|
// 根据键名删除缓存
|
||||||
|
export const deleteKey = (key: string) => {
|
||||||
|
return request.delete({ url: '/infra/redis/delete-key?key=' + key })
|
||||||
|
}
|
||||||
|
|
||||||
|
export const deleteKeys = (keyTemplate: string) => {
|
||||||
|
return request.delete({
|
||||||
|
url: '/infra/redis/delete-keys?',
|
||||||
|
params: {
|
||||||
|
keyTemplate
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user