store
@rotorsoft/act-root / act/src / store
Variable: store()
const
store: (adapter?
) =>Store
Defined in: libs/act/src/ports.ts:120
Singleton event store port. By default, uses the in-memory store.
You can inject a persistent store (e.g., Postgres) by calling store(myAdapter)
.
Parameters
adapter?
Returns
Example
const myStore = store();
const customStore = store(new MyCustomStore());