| import { request } from '@umijs/max'; |
| * @author whiteshader@163.com |
| export function listCacheName() { |
| return request<API.Monitor.CacheNamesResponse>('/api/monitor/cache/getNames', { |
| export function listCacheKey(cacheName: string) { |
| return request<API.Monitor.CacheKeysResponse>('/api/monitor/cache/getKeys/' + cacheName, { |
| export function getCacheValue(cacheName: string, cacheKey: string) { |
| return request<API.Monitor.CacheValueResponse>('/api/monitor/cache/getValue/' + cacheName + '/' + cacheKey, { |
| export function clearCacheName(cacheName: string) { |
| return request<API.Result>('/api/monitor/cache/clearCacheName/' + cacheName, { |
| export function clearCacheKey(cacheKey: string) { |
| return request<API.Result>('/api/monitor/cache/clearCacheKey/' + cacheKey, { |
| export function clearCacheAll() { |
| return request<API.Result>('/api/monitor/cache/clearCacheAll', { |