Files
ruoyi-plus-vben5-h/apps/web-antd/src/api/monitor/cache/index.ts
2024-08-07 08:57:56 +08:00

25 lines
403 B
TypeScript

import { requestClient } from '#/api/request';
export interface CommandStats {
name: string;
value: string;
}
export interface RedisInfo {
[key: string]: string;
}
export interface CacheInfo {
commandStats: CommandStats[];
dbSize: number;
info: RedisInfo;
}
/**
*
* @returns redis信息
*/
export function redisCacheInfo() {
return requestClient.get<CacheInfo>('/monitor/cache');
}