ts-project-indexer-mcp
Version:
A powerful MCP (Model Context Protocol) server that indexes and analyzes TypeScript/JavaScript projects, providing intelligent code exploration, dependency tracking, method discovery, and project structure analysis for AI assistants and development tools.
21 lines • 696 B
TypeScript
export declare class CacheManager {
private cache;
private cacheDir;
private defaultTtl;
constructor(cacheDir?: string);
init(): Promise<void>;
get<T>(key: string): Promise<T | null>;
set<T>(key: string, data: T, ttl?: number): Promise<void>;
delete(key: string): Promise<void>;
clear(): Promise<void>;
has(key: string): Promise<boolean>;
getFileChecksum(filePath: string): Promise<string | null>;
isFileChanged(filePath: string, cachedChecksum: string): Promise<boolean>;
private isExpired;
private sanitizeKey;
getStats(): {
memoryEntries: number;
cacheDir: string;
};
}
//# sourceMappingURL=cache-manager.d.ts.map