import { Cache, type CacheQueryOptions } from "./index.js"; /** * Configuration options for MemoryCache */ export interface MemoryCacheOptions { /** Maximum number of entries to store */ maxEntries?: number; } /** * In-memory cache implementation using Map for storage * Supports LRU eviction and TTL expiration * Uses Map's insertion order for LRU tracking */ export declare class MemoryCache extends Cache { #private; constructor(_name: string, options?: MemoryCacheOptions); /** * Find a cached response for the given request */ match(request: RequestInfo | URL, options?: CacheQueryOptions): Promise; /** * Store a request/response pair in the cache */ put(request: RequestInfo | URL, response: Response): Promise; /** * Delete matching entries from the cache */ delete(request: RequestInfo | URL, options?: CacheQueryOptions): Promise; /** * Get all stored requests, optionally filtered by a request pattern */ keys(request?: RequestInfo | URL, options?: CacheQueryOptions): Promise; /** * Clear all entries from the cache */ clear(): Promise; } export default MemoryCache;