diff --git a/src/api/monitor.ts b/src/api/monitor.ts index 0652c1c..92cba87 100644 --- a/src/api/monitor.ts +++ b/src/api/monitor.ts @@ -1,6 +1,7 @@ import { http } from "@/utils/http"; import type { OperationLogInfo, + RedisMonitorInfo, SystemMonitorInfo, UserLoginLogInfo } from "types/monitor"; @@ -59,3 +60,13 @@ export const getUserOperationsAPI = (params: { export const getSystemMonitorInfoAPI = () => { return http.request("get", "/api/server"); }; + +// --------------------------缓存相关-------------------------------------- + +/** + * 获取服务器缓存信息 + * @returns + */ +export const getCachedMonitorInfoAPI = () => { + return http.request("get", "/api/cache/monitor"); +}; diff --git a/src/views/monitor/cache/index.vue b/src/views/monitor/cache/index.vue new file mode 100644 index 0000000..11d2be5 --- /dev/null +++ b/src/views/monitor/cache/index.vue @@ -0,0 +1,279 @@ + + + + +