feat: 新增缓存监控页面

This commit is contained in:
valarchie
2023-07-19 23:02:36 +08:00
parent 64391d1652
commit aa37f8c7af
2 changed files with 192 additions and 0 deletions

View File

@@ -113,3 +113,25 @@ export interface SystemInfo {
export const getServerInfoApi = () => {
return http.request<ResponseData<ServerInfo>>("get", "/monitor/serverInfo");
};
/**
* RedisCacheInfoDTO
*/
export interface RedisCacheInfoDTO {
commandStats?: CommandStatusDTO[];
dbSize?: number;
info?: { [key: string]: string };
}
/**
* CommandStatusDTO
*/
export interface CommandStatusDTO {
name?: string;
value?: string;
}
/** 获取Redis信息 */
export const getCacheInfoApi = () => {
return http.request<ResponseData<ServerInfo>>("get", "/monitor/cacheInfo");
};