createMemorySynclet
The createMemorySynclet function creates an in-memory Synclet with both data and metadata storage in a single call.
createMemorySynclet<Depth>(options: MemorySyncletOptions<Depth>): Promise<Synclet<Depth, DataConnector<Depth>, MetaConnector<Depth>>>| Type | Description | |
|---|---|---|
options | MemorySyncletOptions<Depth> | Configuration object specifying transport and other |
| returns | Promise<Synclet<Depth, DataConnector<Depth>, MetaConnector<Depth>>> | A Promise resolving to the configured |
This is the simplest way to create a fully functional Synclet with no persistence, making it ideal for testing, prototyping, or scenarios where data should not survive process restarts. The function provides a simplified API that creates both the DataConnector and MetaConnector internally, along with the Synclet instance.
Since
v0.0.0