Skip to content

five-on-it / apps/api/src/store / memoryStore

Function: memoryStore() ​

memoryStore(initial?, persist?): Store

Defined in: apps/api/src/store.ts:1123

A store in memory; persist is called with every change (the file store writes it out).

Parameters ​

initial? ​

Partial<StoreData> = {}

persist? ​

(data) => Promise<void>

Returns ​

Store