Skip to main content

IdempotencyStore

@forge/monorepo


@forge/monorepo / backend/src / IdempotencyStore

Interface: IdempotencyStore

Defined in: backend/src/idempotency/index.ts:86

Persists and returns prior results by key. Adapter lands with persistence (#17+).

Methods

get()

get<T>(input): Promise<IdempotentResult<T> | null>

Defined in: backend/src/idempotency/index.ts:87

Type Parameters

T

T

Parameters

input
key

IdempotencyKey

tenantId

TenantId

Returns

Promise<IdempotentResult<T> | null>


put()

put<T>(input): Promise<void>

Defined in: backend/src/idempotency/index.ts:88

Type Parameters

T

T

Parameters

input
key

IdempotencyKey

result

T

tenantId

TenantId

Returns

Promise<void>