import { MastraBase } from '../base.js'; export declare abstract class MastraServerCache extends MastraBase { constructor({ name }: { name: string; }); abstract get(key: string): Promise; abstract listLength(key: string): Promise; /** * Store a value in the cache. * @param key - Cache key * @param value - Value to store * @param ttlMs - Optional per-key TTL in milliseconds. If not provided, uses * the implementation's default TTL. */ abstract set(key: string, value: unknown, ttlMs?: number): Promise; abstract listPush(key: string, value: unknown): Promise; abstract listFromTo(key: string, from: number, to?: number): Promise; abstract delete(key: string): Promise; abstract clear(): Promise; /** * Atomically increment a counter and return the new value. * Used for generating sequential indices for events. * Returns 1 on first call (counter starts at 0, increments to 1). * * For Redis: Uses INCR command which is atomic. * For in-memory: Uses a simple counter map. */ abstract increment(key: string): Promise; } //# sourceMappingURL=base.d.ts.map