From ae62676c5e0bdf403841dfab7161b147c7417ebd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E7=BA=A2=E4=B8=BD?= <1181930680@qq.com> Date: Mon, 5 Aug 2024 14:58:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=BC=93=E5=AD=98=E7=AE=A1?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/monitor/caches.ts | 27 +++++++++++++++++++++++++ src/views/monitor/caches/index.vue | 32 +++++++++++++++++++++--------- src/views/monitor/server/index.vue | 10 +++++----- 3 files changed, 55 insertions(+), 14 deletions(-) diff --git a/src/api/monitor/caches.ts b/src/api/monitor/caches.ts index e061681..f5056af 100644 --- a/src/api/monitor/caches.ts +++ b/src/api/monitor/caches.ts @@ -28,4 +28,31 @@ export function getCacheValue(params?) { method: 'get', params }); +} +/** + * @description: 删除缓存名称 + */ +export function deleteCacheName(cacheName) { + return http.request({ + url: '/cache/deleteCacheName/'+cacheName, + method: 'DELETE', + }); +} +/** + * @description: 删除缓存key + */ +export function deleteCacheKey(cacheKey) { + return http.request({ + url: '/cache/deleteCacheKey/'+cacheKey, + method: 'DELETE', + }); +} +/** + * @description: 清理全部 + */ +export function deleteCacheAll() { + return http.request({ + url: '/cache/deleteCacheAll', + method: 'DELETE', + }); } \ No newline at end of file diff --git a/src/views/monitor/caches/index.vue b/src/views/monitor/caches/index.vue index 7ccd80b..2d73941 100644 --- a/src/views/monitor/caches/index.vue +++ b/src/views/monitor/caches/index.vue @@ -1,7 +1,7 @@