Create a volatile, in-process StorageAdapter backed by a plain Map. All data is lost when the process exits.
Map
Intended for testing and development only. Because there is no persistence layer, linkToUser and deleteOldSnapshots are no-ops.
linkToUser
deleteOldSnapshots
A fully initialised (eager) StorageAdapter instance.
StorageAdapter
const adapter = createInMemoryAdapter();await adapter.init(); // no-op but keeps the API consistent Copy
const adapter = createInMemoryAdapter();await adapter.init(); // no-op but keeps the API consistent
Create a volatile, in-process StorageAdapter backed by a plain
Map. All data is lost when the process exits.Intended for testing and development only. Because there is no persistence layer,
linkToUseranddeleteOldSnapshotsare no-ops.