Skip to main content

Interface: DefineStoreOptions

Properties

persist?

optional persist?: PersistAdapter;

Restore this store from disk on first use, and write it back as it changes.


persistDebounceMs?

optional persistDebounceMs?: number;

Coalesce disk writes for this long. Default 100.


persistKeys?

optional persistKeys?: string[];

Persist only these keys. Default: every key that has been written.


scope?

optional scope?: ShareScope;

How far this store is shared. Default 'everywhere'.