It supports storing documents in memory only, then use with care !
Deletes an entity from the in-memory store.
The entity name
The entity identifier
A promise resolving to true if the entity existed
Returns or creates the internal map for the given entity name.
The entity name
A map of keys to entities
Lists all entities of a given type from the in-memory store.
The entity name
An observable emitting the array of entities
Loads an entity from the in-memory store.
The entity name
The entity identifier
A promise resolving to the entity or undefined
Loads an entity by its key, rejecting the promise if not found.
The entity name
The entity identifier
A promise resolving to the entity
Searches entities, then applies sorting, grouping, and optional data transformation.
An observable emitting the prepared entities
If the store supports queries with criteria, this function must be implemented, if not, listEntities must be implemented, and this function will apply filters
The entity name
Filter criteria to apply
Uploads a single file and returns the document info.
The file to upload
A promise resolving to the uploaded document info
"Uploads" documents to in-memory blob URLs (ephemeral, for testing only).
The files to process
An observable emitting document info with blob URLs
In-memory store provider for testing or ephemeral data storage. Data is not persisted beyond the application lifecycle.