Skip to main content
Defined in: durability/memory.ts:20 In-process durability backend — the default of BotConfig.durability and the reference implementation of the journal contract. It gives retries, backoff, the dead-letter queue and idempotent sends within one process, but everything it holds is lost when the process dies: use FileDurability (single process) or a store-backed backend (@botmesh/postgres-store, @botmesh/redis-store) to survive a crash.

Extends

Constructors

Constructor

Defined in: durability/memory.ts:21

Returns

MemoryDurability

Overrides

KvDurability.constructor

Properties

inbox

Defined in: durability/journal.ts:383

Inherited from

KvDurability.inbox

outbox

Defined in: durability/journal.ts:384

Inherited from

KvDurability.outbox

exclusive

Defined in: durability/journal.ts:385 true when only one process can use the backend at a time (memory, file). A restarted process then knows every lease of its instanceId is its own dead incarnation’s.

Inherited from

KvDurability.exclusive

scopeName

Defined in: durability/journal.ts:387 The scope of this view (undefined = the unscoped tables).

Inherited from

KvDurability.scopeName

kv

Defined in: durability/journal.ts:388

Inherited from

KvDurability.kv

Methods

scope()

Defined in: durability/journal.ts:397 A view over the same KV holding only the records of name (tables inbox:<name> / outbox:<name>).

Parameters

Returns

KvDurability

Inherited from

KvDurability.scope

start()

Defined in: durability/journal.ts:402 Called by bot.start() before anything is replayed.

Returns

Promise<void>

Inherited from

KvDurability.start

stop()

Defined in: durability/journal.ts:403 Called by bot.stop() after the provider stopped.

Returns

Promise<void>

Inherited from

KvDurability.stop