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

Method constructor

client/packages/core/src/InMemoryStorage.ts:8–11  ·  view source on GitHub ↗
(appId: string, dbName: StoreInterfaceStoreName)

Source from the content-addressed store, hash-verified

6export default class InMemoryStore extends StoreInterface {
7 private store: Map<string, any>;
8 constructor(appId: string, dbName: StoreInterfaceStoreName) {
9 super(appId, dbName);
10 this.store = new Map();
11 }
12
13 async getItem(k) {
14 return this.store.get(k) ?? null;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected