From aa37f8c7af7a336f67ef6ddf2ac3f1ceaede77d2 Mon Sep 17 00:00:00 2001 From: valarchie <343928303@qq.com> Date: Wed, 19 Jul 2023 23:02:36 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=96=B0=E5=A2=9E=E7=BC=93=E5=AD=98?= =?UTF-8?q?=E7=9B=91=E6=8E=A7=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/system/monitor.ts | 22 ++++ src/views/monitor/cache/index.vue | 170 ++++++++++++++++++++++++++++++ 2 files changed, 192 insertions(+) create mode 100644 src/views/monitor/cache/index.vue 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 @@ + + + + +