Skip to main content
Version: Next

KeyValueStoreClient

Hierarchy

  • ResourceClient
    • KeyValueStoreClient

Index

Properties

inheritedapifyClient

apifyClient: ApifyClient

inheritedbaseUrl

baseUrl: string

inheritedhttpClient

httpClient: HttpClient

optionalinheritedid

id?: string

optionalinheritedparams

params?: Record<string, unknown>

inheritedresourcePath

resourcePath: string

optionalinheritedsafeId

safeId?: string

inheritedurl

url: string

Methods

delete

  • delete(): Promise<void>

deleteRecord

  • deleteRecord(key: string): Promise<void>

get

getRecord

  • You can use the buffer option to get the value in a Buffer (Node.js) or ArrayBuffer (browser) format. In Node.js (not in browser) you can also use the stream option to get a Readable stream.

    When the record does not exist, the function resolves to undefined. It does NOT resolve to a KeyValueStore record with an undefined value. https://docs.apify.com/api/v2#/reference/key-value-stores/record/get-record


    Parameters

    • key: string

    Returns Promise<undefined | KeyValueStoreRecord<JsonValue>>

listKeys

recordExists

  • recordExists(key: string): Promise<boolean>

setRecord

update