Skip to main content

createMemoryUsageBackend

@retinue/monorepo


@retinue/monorepo / backend/src / createMemoryUsageBackend

Function: createMemoryUsageBackend()

createMemoryUsageBackend(options?): object

Defined in: backend/src/adapters/memory/usage.ts:39

The ledger and its rollups over one set of rows (#139).

One backend, because a rollup is derived from the ledger and nothing else — deriving it from a second copy of the events would make the two able to disagree, which is the one thing a spend figure must not do.

Parameters​

options?​

clock?​

() => string

Returns​

object

rollups​

rollups: UsageRollupStore

usage​

usage: UsageStore