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

Method getStorageClient

packages/core/src/configuration.ts:412–419  ·  view source on GitHub ↗

* Returns cached instance of {@apilink StorageClient} using options as defined in the environment variables or in * this {@apilink Configuration} instance. Only first call of this method will create the client, following calls will * return the same client instance. * * Caching w

()

Source from the content-addressed store, hash-verified

410 * @internal
411 */
412 getStorageClient(): StorageClient {
413 if (this.options.has('storageClient')) {
414 return this.options.get('storageClient') as StorageClient;
415 }
416
417 const options = this.options.get('storageClientOptions') as Dictionary;
418 return this.createMemoryStorage(options);
419 }
420
421 getEventManager(): EventManager {
422 if (this.options.has('eventManager')) {

Calls 3

createMemoryStorageMethod · 0.95
getGlobalConfigMethod · 0.95
getMethod · 0.65

Tested by

no test coverage detected