From 9836d6d9bde266c1e79333d505e1f218567e7ffe Mon Sep 17 00:00:00 2001 From: 月夜 <768242801@qq.com> Date: 星期一, 11 十一月 2024 15:10:24 +0800 Subject: [PATCH] 优化:字典缓存使用Map代替Array,更高效 --- src/api/monitor/cache/types.ts | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/api/monitor/cache/types.ts b/src/api/monitor/cache/types.ts index 540fafd..4017b65 100644 --- a/src/api/monitor/cache/types.ts +++ b/src/api/monitor/cache/types.ts @@ -1,7 +1,7 @@ export interface CacheVO { - commandStats: Array<{ name: string; value: string }>; + commandStats: Array<{ name: string; value: string }>; - dbSize: number; + dbSize: number; - info: { [key: string]: string }; + info: { [key: string]: string }; } -- Gitblit v1.9.3