MemoryStorage
Implements
- StorageClient
Index
Constructors
constructor
Parameters
options: MemoryStorageOptions = {}
Returns MemoryStorage
Properties
readonlydatasetClientsHandled
readonlydatasetsDirectory
readonlykeyValueStoresDirectory
readonlykeyValueStoresHandled
readonlylocalDataDirectory
readonlyrequestQueuesDirectory
readonlyrequestQueuesHandled
readonlywriteMetadata
Methods
dataset
Type parameters
- Data: Dictionary<any> = Dictionary<any>
Parameters
id: string
Returns DatasetClient<Data>
datasets
Returns DatasetCollectionClient
keyValueStore
Parameters
id: string
Returns KeyValueStoreClient
keyValueStores
Returns KeyValueStoreCollectionClient
purge
Cleans up the default storage directories before the run starts:
- local directory containing the default dataset;
- all records from the default key-value store in the local directory, except for the "INPUT" key;
- local directory containing the default request queue.
Returns Promise<void>
requestQueue
Parameters
id: string
options: RequestQueueOptions = {}
Returns RequestQueueClient
requestQueues
Returns RequestQueueCollectionClient
teardown
This method should be called at the end of the process, to ensure all data is saved.
Returns Promise<void>
Represents a storage capable of working with datasets, KV stores and request queues.