Package Exports
- resolve-storage-lite
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (resolve-storage-lite) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
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:'
})