MemoryOutbox
Class Stability: stable
In-memory Outbox (lost with the page, like a non-persisted document).
Import
TypeScript
import { MemoryOutbox } from '@aionbuilders/nabu';Constructor
TypeScript
new MemoryOutbox()Properties
size readonly
TypeScript
readonly size: numberNumber of entries (handy in tests / diagnostics).
Methods
clear()
TypeScript
clear(): Promise<void>delete()
TypeScript
delete(hash: string): Promise<void>| Parameter | Type | Description |
|---|---|---|
hash | string | n/a |
list()
TypeScript
list(): Promise<OutboxEntry[]>put()
TypeScript
put(entry: OutboxEntry): Promise<void>| Parameter | Type | Description |
|---|---|---|
entry | OutboxEntry | n/a |
Source: src/lib/files/outbox.js:31