MCPcopy
hub / github.com/apify/crawlee / getKeyValueStore

Method getKeyValueStore

test/shared/MemoryStorageEmulator.ts:52–54  ·  view source on GitHub ↗
(id?: string)

Source from the content-addressed store, hash-verified

50 }
51
52 getKeyValueStore(id?: string) {
53 return this.storage.keyValueStore(id ?? Configuration.getGlobalConfig().get('defaultKeyValueStoreId'));
54 }
55
56 async getState() {
57 return await this.getKeyValueStore().getRecord('CRAWLEE_STATE');

Callers 7

getStateMethod · 0.95
captureSnapshotMethod · 0.80
commitResultMethod · 0.80

Calls 3

getGlobalConfigMethod · 0.80
keyValueStoreMethod · 0.65
getMethod · 0.65

Tested by

no test coverage detected