mirror of
https://github.com/imdap/ruoyi-plus-vben5.git
synced 2026-05-06 10:01:26 +08:00
25 lines
403 B
TypeScript
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');
|
|
}
|