Skip to content

Interface: IdempotencyStore<Context, TransactionContext> ​

Defined in: fate/src/idempotency.ts:34

All methods and the resolver run in ONE application database transaction. The adapter must serialize concurrent calls for the same scope and ID, including calls from different processes. Bounded receipts may be deleted after expiresAt plus a clock-skew margin. Legacy receipts must remain while legacy identities are accepted.

Type Parameters ​

Context ​

Context

TransactionContext ​

TransactionContext extends Context = Context

Methods ​

transaction() ​

transaction<T>(context, scope, id, run): Promise<T>

Defined in: fate/src/idempotency.ts:35

Type Parameters ​

T ​

T

Parameters ​

context ​

Context

scope ​

string

id ​

string

run ​

(transaction) => Promise<T>

Returns ​

Promise<T>

Released under the MIT License