import type { CacheOptions, CacheStats } from './types'; /** * LRU (Least Recently Used) Memory Cache * Fast in-memory caching with automatic eviction */ export declare class MemoryCache { private cache; private accessOrder; private maxSize; private defaultTTL?; private statsHits; private statsMisses; constructor(options?: CacheOptions); /** * Get value from cache * @param key - Cache key * @returns Cached value or null if not found/expired */ get(key: string): T | null; /** * Set value in cache * @param key - Cache key * @param data - Data to cache * @param ttl - Time-to-live in milliseconds */ set(key: string, data: T, ttl?: number): void; /** * Remove value from cache * @param key - Cache key * @returns true if removed, false if not found */ remove(key: string): boolean; /** * Clear all cache entries */ clear(): void; /** * Get current cache size * @returns Number of entries in cache */ size(): number; /** * Get cache statistics * @returns Cache stats */ getStats(): CacheStats; /** * Check if entry is expired * @param entry - Cache entry * @returns true if expired */ private isExpired; /** * Evict least recently used entry */ private evictOldest; /** * Update access order for key * @param key - Cache key */ private updateAccessOrder; /** * Remove key from access order * @param key - Cache key */ private removeFromAccessOrder; /** * Check if key exists in cache * @param key - Cache key * @returns true if key exists and not expired */ has(key: string): boolean; /** * Get all keys in cache * @returns Array of cache keys */ keys(): string[]; } //# sourceMappingURL=cache.d.ts.map