/** Generic in-memory cache with TTL expiration and optional max size. */ export declare class TTLCache { private defaultTTL; private cache; private maxSize; constructor(defaultTTL?: number, maxSize?: number); get(key: K): V | undefined; set(key: K, value: V, ttl?: number): void; invalidate(key: K): void; /** Invalidate all entries whose key starts with the given prefix. */ invalidatePrefix(prefix: string): void; clear(): void; get size(): number; } //# sourceMappingURL=cache.d.ts.map