Graphorin API reference v0.4.0
Graphorin API reference / @graphorin/store-sqlite / / SqliteIdempotencyStore
Class: SqliteIdempotencyStore
Defined in: packages/store-sqlite/src/idempotency-store.ts:43
Default IdempotencyStore implementation.
Stable
Implements
Constructors
Constructor
ts
new SqliteIdempotencyStore(conn): SqliteIdempotencyStore;Defined in: packages/store-sqlite/src/idempotency-store.ts:45
Parameters
| Parameter | Type |
|---|---|
conn | SqliteConnection |
Returns
SqliteIdempotencyStore
Methods
delete()
ts
delete(key): Promise<void>;Defined in: packages/store-sqlite/src/idempotency-store.ts:86
Parameters
| Parameter | Type |
|---|---|
key | string |
Returns
Promise<void>
Implementation of
get()
ts
get(key): Promise<
| IdempotencyRecord
| null>;Defined in: packages/store-sqlite/src/idempotency-store.ts:67
Parameters
| Parameter | Type |
|---|---|
key | string |
Returns
Promise< | IdempotencyRecord | null>
Implementation of
prune()
ts
prune(olderThan): Promise<number>;Defined in: packages/store-sqlite/src/idempotency-store.ts:90
Parameters
| Parameter | Type |
|---|---|
olderThan | number |
Returns
Promise<number>
Implementation of
put()
ts
put(record): Promise<void>;Defined in: packages/store-sqlite/src/idempotency-store.ts:49
Parameters
| Parameter | Type |
|---|---|
record | IdempotencyRecord |
Returns
Promise<void>