Constructor
new TransactionStore(optsopt)
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
opts |
Object |
<optional> |
(TypeScript: |
Classes
Methods
set(id)
Parameters:
| Name | Type | Description |
|---|---|---|
id |
string | @param {Record<string, any>} transaction |
sweep(maxAgeMs)
Removes transactions older than maxAgeMs (abandoned sign-ins).
Parameters:
| Name | Type | Description |
|---|---|---|
maxAgeMs |
number |
take(id) → {Record.<string, any>|undefined}
Reads and removes a transaction.
Parameters:
| Name | Type | Description |
|---|---|---|
id |
string |
Returns:
- Type
- Record.<string, any> | undefined