diff --git a/acupuncture-后台/src/api/monitor/cache.js b/acupuncture-后台/src/api/monitor/cache.js
index 72c5f6a3..d06fec99 100644
--- a/acupuncture-后台/src/api/monitor/cache.js
+++ b/acupuncture-后台/src/api/monitor/cache.js
@@ -1,57 +1,65 @@
-import request from '@/utils/request'
+import request from "@/utils/request";
// 查询缓存详细
export function getCache() {
return request({
- url: '/monitor/cache',
- method: 'get'
- })
+ url: "/monitor/cache",
+ method: "get",
+ });
}
// 查询缓存名称列表
export function listCacheName() {
return request({
- url: '/monitor/cache/getNames',
- method: 'get'
- })
+ url: "/monitor/cache/getNames",
+ method: "get",
+ });
}
// 查询缓存键名列表
export function listCacheKey(cacheName) {
return request({
- url: '/monitor/cache/getKeys/' + cacheName,
- method: 'get'
- })
+ url: "/monitor/cache/getKeys/" + cacheName,
+ method: "get",
+ });
}
// 查询缓存内容
export function getCacheValue(cacheName, cacheKey) {
return request({
- url: '/monitor/cache/getValue/' + cacheName + '/' + cacheKey,
- method: 'get'
- })
+ url: "/monitor/cache/getValue/" + cacheName + "/" + cacheKey,
+ method: "get",
+ });
}
// 清理指定名称缓存
export function clearCacheName(cacheName) {
return request({
- url: '/monitor/cache/clearCacheName/' + cacheName,
- method: 'delete'
- })
+ url: "/monitor/cache/clearCacheName/" + cacheName,
+ method: "delete",
+ });
}
// 清理指定键名缓存
export function clearCacheKey(cacheKey) {
return request({
- url: '/monitor/cache/clearCacheKey/' + cacheKey,
- method: 'delete'
- })
+ url: "/monitor/cache/clearCacheKey/" + cacheKey,
+ method: "delete",
+ });
}
// 清理全部缓存
export function clearCacheAll() {
return request({
- url: '/monitor/cache/clearCacheAll',
- method: 'delete'
- })
+ url: "/monitor/cache/clearCacheAll",
+ method: "delete",
+ });
+}
+// 新增修改
+export function cacheAdd(query) {
+ return request({
+ url: "/monitor/cache/add",
+ method: "get",
+ params: query,
+ });
}
diff --git a/acupuncture-后台/src/views/monitor/cache/list.vue b/acupuncture-后台/src/views/monitor/cache/list.vue
index 29a7c741..1d021dd9 100644
--- a/acupuncture-后台/src/views/monitor/cache/list.vue
+++ b/acupuncture-后台/src/views/monitor/cache/list.vue
@@ -11,6 +11,12 @@
icon="el-icon-refresh-right"
@click="refreshCacheNames()"
>
+
+
+