/** * In-process memory cache with TTL. * * Used by DataStore to avoid re-reading JSON from disk on every call. * Entry is invalidated on write and expires after `ttlMs`. */ export declare class MemoryCache { private readonly ttlMs; private store; constructor(ttlMs?: number); get(key: string): T | undefined; set(key: string, value: T, ttlMs?: number): void; invalidate(key: string): void; /** Drop all entries whose key starts with prefix (e.g. "token::") */ invalidatePrefix(prefix: string): void; clear(): void; /** Test helper: number of live (not yet expired) entries */ size(): number; } //# sourceMappingURL=cache.d.ts.map