You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
749 B
33 lines
749 B
import { defHttp } from '/@/utils/http/axios';
|
|
import {
|
|
CacheKeys,
|
|
CacheValue,
|
|
CacheRefreshRequest,
|
|
GetCacheKeysRequest,
|
|
} from './model';
|
|
|
|
export const getKeys = (input: GetCacheKeysRequest) => {
|
|
return defHttp.get<CacheKeys>({
|
|
url: '/api/caching-management/cache',
|
|
params: input,
|
|
});
|
|
};
|
|
|
|
export const getValue = (key: string) => {
|
|
return defHttp.get<CacheValue>({
|
|
url: `/api/caching-management/cache?key=${key}`,
|
|
});
|
|
};
|
|
|
|
export const refresh = (input: CacheRefreshRequest) => {
|
|
return defHttp.put<void>({
|
|
url: `/api/caching-management/cache/refresh`,
|
|
data: input,
|
|
});
|
|
};
|
|
|
|
export const remove = (key: string) => {
|
|
return defHttp.delete<void>({
|
|
url: `/api/caching-management/cache?key=${key}`,
|
|
});
|
|
};
|
|
|