/** * A small, bounded **LRU cache** for Server-Side Row Model responses, keyed by a * request signature (sort + filter + search + page + size). Serving a repeat * request from cache makes revisiting a page instant and cancels a network * round-trip. * * The implementation mirrors the grid's other bounded caches (e.g. the formula * ExpressionCache): a `Map` preserves insertion order, a hit re-inserts the key * to mark it most-recently-used, and inserting past capacity evicts the oldest * key. All operations are O(1). * * @packageDocumentation */ import type { ServerSideResult } from '../../types/server-side.types'; /** Default maximum number of cached responses. */ export declare const DEFAULT_SERVER_CACHE_MAX_ENTRIES = 50; /** LRU cache of {@link ServerSideResult}s keyed by request signature. */ export declare class ServerSideCache { private readonly maxEntries; private readonly store; private hits; private misses; constructor(maxEntries?: number); /** Returns the cached result for a signature, marking it most-recently-used, or `undefined` on a miss. */ get(signature: string): ServerSideResult | undefined; /** Stores a result, evicting the least-recently-used entry when over capacity. */ set(signature: string, result: ServerSideResult): void; /** Empties the cache (used by `refreshServerSide({ purge: true })`). */ clear(): void; /** Hit/miss/size diagnostics. */ stats(): { hits: number; misses: number; size: number; }; } //# sourceMappingURL=server-side-cache.d.ts.map