import { MastraServerCache } from './base.js'; /** * Options for InMemoryServerCache */ export interface InMemoryServerCacheOptions { /** * Maximum number of items to store in cache. * Defaults to 1000. */ maxSize?: number; /** * Default TTL in milliseconds for cached items. * Defaults to 300000 (5 minutes). * Set to 0 to disable TTL (items persist until explicitly deleted or evicted). */ ttlMs?: number; } export declare class InMemoryServerCache extends MastraServerCache { private cache; private ttlMs; constructor(options?: InMemoryServerCacheOptions); get(key: string): Promise; set(key: string, value: unknown, ttlMs?: number): Promise; listLength(key: string): Promise; listPush(key: string, value: unknown): Promise; listFromTo(key: string, from: number, to?: number): Promise; delete(key: string): Promise; clear(): Promise; increment(key: string): Promise; } //# sourceMappingURL=inmemory.d.ts.map