MCPcopy Create free account
hub / github.com/instantdb/instant / multiSet

Method multiSet

client/packages/core/src/InMemoryStorage.ts:25–29  ·  view source on GitHub ↗
(keyValuePairs: Array<[string, any]>)

Source from the content-addressed store, hash-verified

23 }
24
25 async multiSet(keyValuePairs: Array<[string, any]>): Promise<void> {
26 for (const [k, v] of keyValuePairs) {
27 this.setItem(k, v);
28 }
29 }
30
31 async removeItem(key: string): Promise<void> {
32 this.store.delete(key);

Callers 2

_writeToStorageMethod · 0.45

Calls 1

setItemMethod · 0.95

Tested by

no test coverage detected