From 48b122a348c1f993eba2ea059091d1e44fd9245e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E9=99=88=E7=BA=A2=E4=B8=BD?= <1181930680@qq.com>
Date: Tue, 6 Aug 2024 08:36:42 +0800
Subject: [PATCH] =?UTF-8?q?=E7=BC=93=E5=AD=98=E7=9B=91=E6=8E=A7?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/monitor/cache/gaugeBox.vue | 50 ++++++++++++++++
src/views/monitor/cache/index.vue | 88 ++++++++++++++++++++++++++++
src/views/monitor/cache/pieBox.vue | 43 ++++++++++++++
3 files changed, 181 insertions(+)
create mode 100644 src/views/monitor/cache/gaugeBox.vue
create mode 100644 src/views/monitor/cache/index.vue
create mode 100644 src/views/monitor/cache/pieBox.vue
diff --git a/src/views/monitor/cache/gaugeBox.vue b/src/views/monitor/cache/gaugeBox.vue
new file mode 100644
index 0000000..d8e9be4
--- /dev/null
+++ b/src/views/monitor/cache/gaugeBox.vue
@@ -0,0 +1,50 @@
+
+
+
+
\ No newline at end of file
diff --git a/src/views/monitor/cache/index.vue b/src/views/monitor/cache/index.vue
new file mode 100644
index 0000000..b9b3fe1
--- /dev/null
+++ b/src/views/monitor/cache/index.vue
@@ -0,0 +1,88 @@
+
+
+
+
+ Redis版本
+ {{ baseInfo.redis_version }}
+ 运行模式
+ {{ baseInfo.redis_mode == 'standalone' ? '单机' : '集群' }}
+ 端口
+ {{ baseInfo.tcp_port }}
+ 客户端数
+ {{ baseInfo.connected_clients }}
+
+
+ 运行时间(天)
+ {{ baseInfo.uptime_in_days }}
+ 使用内存
+ {{ baseInfo.used_memory_human }}
+ 使用CUP
+ {{ baseInfo.used_cpu_user_children }}
+ 内存配置
+ {{ baseInfo.maxmemory_human }}
+
+
+ AOF是否开启
+ {{ baseInfo.aof_enabled == 0 ? '开启' : '关闭' }}
+ RDB是否成功
+ {{ baseInfo.aof_enabled == 'ok' ? '成功' : '失败' }}
+ key数量
+ {{ baseInfo.dbSize }}
+ 网络入口/出口
+
+ {{ baseInfo.instantaneous_input_kbps }}
+ /
+ {{ baseInfo.instantaneous_output_kbps }}
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/monitor/cache/pieBox.vue b/src/views/monitor/cache/pieBox.vue
new file mode 100644
index 0000000..8ae2306
--- /dev/null
+++ b/src/views/monitor/cache/pieBox.vue
@@ -0,0 +1,43 @@
+
+
+
+