/** * Cache service for QBOMCP-TS */ import { ICacheService } from '../types'; /** * In-memory cache with optional file persistence */ export declare class CacheService implements ICacheService { private cache; private readonly maxSize; private readonly defaultTTL; private readonly persistPath?; private cleanupInterval?; constructor(); /** * Generate cache key from input */ private generateKey; /** * Calculate size of value in bytes */ private calculateSize; /** * Get value from cache */ get(key: string): Promise; /** * Set value in cache */ set(key: string, value: T, ttl?: number): Promise; /** * Delete value from cache */ delete(key: string): Promise; /** * Clear entire cache */ clear(): Promise; /** * Evict least recently used entry */ private evictLRU; /** * Clean up expired entries */ private cleanup; /** * Load cache from disk */ private loadFromDisk; /** * Save cache to disk */ private saveToDisk; /** * Get cache statistics */ getStats(): { size: number; maxSize: number; hitRate: number; totalHits: number; totalSize: number; }; /** * Shutdown cache service */ shutdown(): Promise; } export declare const cacheService: CacheService; //# sourceMappingURL=cache.d.ts.map