File size: 466 Bytes
bf48b89 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | import type Redis from 'ioredis';
import type { LRUCache } from 'lru-cache';
type CacheModule = {
init: () => void;
get: (key: string, refresh?: boolean) => Promise<string | null> | string | null;
set: (key: string, value?: string | Record<string, any>, maxAge?: number) => any;
status: {
available: boolean;
};
clients: {
redisClient?: Redis;
memoryCache?: LRUCache<any, any>;
};
};
export default CacheModule;
|