IdempotencyStore
●cart · /core·interface
Backing store contract for the middleware. Implementations persist successful mutation results keyed by idempotency token so that duplicate requests within the TTL window replay the cached cart without re-invoking the adapter.
Properties
PROPTYPEDESCRIPTION
get
unknown
set
unknown
Example
const store: IdempotencyStore = memoryIdempotencyStore();
await store.set('idem-key', cart, 30_000);
const hit = await store.get('idem-key');Related
RunCartAdapterContractOpts runCartAdapterContract CartCapabilityUnsupportedError CartError CartNotFoundError CartProviderError CartUserError CartAdapter
MetadataOpen in GitHub ↗
ITracer
Minimal tracing interface accepted by the middleware and optionally supplied on . Mirrors the OTel Tracer shape without a direct dependency so hosts can bridge
idempotency
Builtin middleware that deduplicates mutations sharing the same ctx.idempotencyKey within windowMs. Replays return the cached cart without invoking the inner ch