/** * Simple in-memory cache with TTL support */ export declare class Cache { private store; private defaultTTL; constructor(defaultTTL?: number); /** * Generate cache key from parts */ generateKey(...parts: (string | number | undefined)[]): string; /** * Get value from cache */ get(key: string): T | null; /** * Set value in cache */ set(key: string, value: T, ttl?: number): void; /** * Check if key exists and is valid */ has(key: string): boolean; /** * Delete specific key */ delete(key: string): boolean; /** * Delete all keys matching pattern */ deletePattern(pattern: string): number; /** * Clear entire cache */ clear(): void; /** * Clean up expired entries */ private cleanup; /** * Get cache stats */ getStats(): { size: number; hits: number; misses: number; }; /** * Get or set with factory function */ getOrSet(key: string, factory: () => Promise, ttl?: number): Promise; } export declare const cache: Cache; //# sourceMappingURL=cache.d.ts.map