diff --git a/src/api/system/monitor.ts b/src/api/system/monitor.ts index 8b53169..53ddfd8 100644 --- a/src/api/system/monitor.ts +++ b/src/api/system/monitor.ts @@ -113,3 +113,25 @@ export interface SystemInfo { export const getServerInfoApi = () => { return http.request>("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>("get", "/monitor/cacheInfo"); +}; diff --git a/src/views/monitor/cache/index.vue b/src/views/monitor/cache/index.vue new file mode 100644 index 0000000..213bb82 --- /dev/null +++ b/src/views/monitor/cache/index.vue @@ -0,0 +1,170 @@ + + + + +