Skip to content

SharedDataStore.setMany method

SharedDataStore › setMany

Publishes a batch of register writes, appended to this device's open journal segment and split into bounded ones. Segments are individually durable; a failed batch can have a published prefix and can be retried safely.

Signature:

setMany(entries: readonly (readonly [string, JsonValue])[]): Promise<void>

Parameters:

ParameterTypeDescription
entriesreadonly (readonly [string, JsonValue])[]Register writes or set additions.

Returns: Promise<void> — A promise that resolves after journal publication and local commit.