Skip to content

Interface: IdempotencyStore<Context, TransactionContext> ​

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

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. Receipts must not expire.

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:25

Type Parameters ​

T ​

T

Parameters ​

context ​

Context

scope ​

string

id ​

string

run ​

(transaction) => Promise<T>

Returns ​

Promise<T>

Released under the MIT License