Skip to main content
Version: 3.0

StorageClient

Represents a storage capable of working with datasets, KV stores and request queues.

Implemented by

  • MemoryStorage

Index

Properties

optionalstats

stats?: { rateLimitErrors: number[] }

Type declaration

  • rateLimitErrors: number[]

Methods

dataset

  • dataset(id: string): DatasetClient<Dictionary<any>>
  • Parameters

    • id: string

    Returns DatasetClient<Dictionary<any>>

datasets

  • datasets(): DatasetCollectionClient
  • Returns DatasetCollectionClient

keyValueStore

  • keyValueStore(id: string): KeyValueStoreClient
  • Parameters

    • id: string

    Returns KeyValueStoreClient

keyValueStores

  • keyValueStores(): KeyValueStoreCollectionClient
  • Returns KeyValueStoreCollectionClient

optionalpurge

  • purge(): Promise<void>
  • Returns Promise<void>

requestQueue

  • requestQueue(id: string, options?: RequestQueueOptions): RequestQueueClient
  • Parameters

    • id: string
    • optionaloptions: RequestQueueOptions

    Returns RequestQueueClient

requestQueues

  • requestQueues(): RequestQueueCollectionClient
  • Returns RequestQueueCollectionClient

optionalteardown

  • teardown(): Promise<void>
  • Returns Promise<void>