@pwngh/economy-lab
    Preparing search index...

    Function memoryStore

    • Build an in-memory Store with working transaction rollback, for tests and development. If the work inside a transaction throws, every store that joined the transaction is rolled back, each independently so one store's failing rollback can't stop the others. The checkpoint store is written outside transactions and isn't rolled back. The hash function and clock default to deterministic versions, so a plain memoryStore() is reproducible.

      Overlapping transaction calls queue and run one at a time in arrival order, so the memory store never interleaves writers. velocityWindowMs sets the trust store's velocity window and defaults to one hour, matching the SQL stores.

      Parameters

      • Optionaldeps: { clock?: Clock; digest?: Digest; velocityWindowMs?: number }

      Returns Store

      Storage for the store ports this adapter implements.