@siva-sub/mcp-public-transport
Version:
A Model Context Protocol server for Singapore transport data with real-time information and routing
13 lines (12 loc) • 391 B
TypeScript
export declare class CacheService {
private cache;
private hitCount;
private missCount;
constructor(defaultTtl?: number);
getOrSet<T>(key: string, fetchFn: () => Promise<T>, ttl?: number): Promise<T>;
get<T>(key: string): T | undefined;
set<T>(key: string, value: T, ttl?: number): boolean;
del(key: string): number;
flush(): void;
getStats(): any;
}