/** * MemoryIdempotencyStore — first-party in-memory implementation of the * IdempotencyStore contract (src/manifest/runtime-engine.ts). * * Intended use: * - Unit and conformance tests * - Local development and sample applications * - Reference for downstream durable implementations * * Durability: none. State lives in process memory only. * * First-write-wins: `set` on a key that already has a cached result is a * no-op — the first recorded result wins. This mirrors the durable * PostgresIdempotencyStore (INSERT … ON CONFLICT (key) DO NOTHING) so both * adapters behave identically under a replay. In normal runtime operation * the engine only calls `set` after a `get` miss, so the two policies are * indistinguishable there; the choice matters only for racing writers. */ import type { CommandResult, IdempotencyStore } from '../../runtime-engine'; export declare class MemoryIdempotencyStore implements IdempotencyStore { private cache; has(key: string): Promise; get(key: string): Promise; set(key: string, result: CommandResult, _tx?: unknown): Promise; /** Number of cached keys. Not part of the contract — for tests/observability. */ size(): number; /** Drop all cached results. Not part of the contract — for tests. */ clear(): void; } //# sourceMappingURL=memory.d.ts.map