| 对比新文件 |
| | |
| | | import request from '@/utils/request'
|
| | |
|
| | | // 鏌ヨ缂撳瓨璇︾粏
|
| | | export function getCache() {
|
| | | return request({
|
| | | url: '/monitor/cache',
|
| | | method: 'get'
|
| | | })
|
| | | }
|
| | |
|
| | | // 鏌ヨ缂撳瓨鍚嶇О鍒楄〃
|
| | | export function listCacheName() {
|
| | | return request({
|
| | | url: '/monitor/cache/getNames',
|
| | | method: 'get'
|
| | | })
|
| | | }
|
| | |
|
| | | // 鏌ヨ缂撳瓨閿悕鍒楄〃
|
| | | export function listCacheKey(cacheName) {
|
| | | return request({
|
| | | url: '/monitor/cache/getKeys/' + cacheName,
|
| | | method: 'get'
|
| | | })
|
| | | }
|
| | |
|
| | | // 鏌ヨ缂撳瓨鍐呭
|
| | | export function getCacheValue(cacheName, cacheKey) {
|
| | | return request({
|
| | | url: '/monitor/cache/getValue/' + cacheName + '/' + cacheKey,
|
| | | method: 'get'
|
| | | })
|
| | | }
|
| | |
|
| | | // 娓呯悊鎸囧畾鍚嶇О缂撳瓨
|
| | | export function clearCacheName(cacheName) {
|
| | | return request({
|
| | | url: '/monitor/cache/clearCacheName/' + cacheName,
|
| | | method: 'delete'
|
| | | })
|
| | | }
|
| | |
|
| | | // 娓呯悊鎸囧畾閿悕缂撳瓨
|
| | | export function clearCacheKey(cacheKey) {
|
| | | return request({
|
| | | url: '/monitor/cache/clearCacheKey/' + cacheKey,
|
| | | method: 'delete'
|
| | | })
|
| | | }
|
| | |
|
| | | // 娓呯悊鍏ㄩ儴缂撳瓨
|
| | | export function clearCacheAll() {
|
| | | return request({
|
| | | url: '/monitor/cache/clearCacheAll',
|
| | | method: 'delete'
|
| | | })
|
| | | }
|