You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

42 lines
945 B

import { defHttp } from '@/utils/http/axios'
/**
* redis
*/
export function getCacheApi() {
return defHttp.get({ url: '/infra/redis/get-monitor-info' })
}
// 获取模块
export function getKeyDefineListApi() {
return defHttp.get({ url: '/infra/redis/get-key-define-list' })
}
/**
* redis key列表
*/
export function getKeyListApi(keyTemplate: string) {
return defHttp.get({
url: '/infra/redis/get-key-list',
params: {
keyTemplate
}
})
}
// 获取缓存内容
export function getKeyValueApi(key: string) {
return defHttp.get({ url: '/infra/redis/get-key-value?key=' + key })
}
// 根据键名删除缓存
export function deleteKeyApi(key: string) {
return defHttp.delete({ url: '/infra/redis/delete-key?key=' + key })
}
export function deleteKeysApi(keyTemplate: string) {
return defHttp.delete({
url: '/infra/redis/delete-keys?',
params: {
keyTemplate
}
})
}