resolve-storage-lite
v0.23.2
Published
An adapter reSolve uses to store events in a file or memory.
Downloads
185
Readme
resolve-storage-lite
This package is a resolve-es
adapter for storing events using a file or memory.
Available Parameters
You can pass the following argument when initializing an adapter:
databaseFile
- the path to a file where events are stored. In case ":memory:" all data is lost when an application instance is restarted.
Usage
import createAdapter from 'resolve-storage-lite'
const fileAdapter = createAdapter({
databaseFile: './store.db'
})
const memoryAdapter = createAdapter({
databaseFile: ':memory:'
})