KeyValueStoreCollectionClient
Hierarchy
- ResourceCollectionClient
- KeyValueStoreCollectionClient
Index
Properties
inheritedapifyClient
inheritedbaseUrl
inheritedhttpClient
optionalinheritedid
optionalinheritedparams
inheritedpublicBaseUrl
inheritedresourcePath
optionalinheritedsafeId
inheritedurl
Methods
getOrCreate
Gets or creates a key-value store with the specified name.
Parameters
optionalname: string
Name of the key-value store. If not provided, a default store is used.
optionaloptions: KeyValueStoreCollectionClientGetOrCreateOptions
Additional options like schema.
Returns Promise<KeyValueStore>
The key-value store object.
list
Lists all Key-value stores.
Awaiting the return value (as you would with a Promise) will result in a single API call. The amount of fetched items in a single API call is limited.
const paginatedList = await client.list(options);Asynchronous iteration is also supported. This will fetch additional pages if needed until all items are retrieved.
for await (const singleItem of client.list(options)) {...}Parameters
options: KeyValueStoreCollectionClientListOptions = {}
Pagination options.
Returns Promise<KeyValueStoreCollectionListResult> & AsyncIterable<KeyValueStore, any, any>
A paginated iterator of Key-value stores.
Client for managing the collection of Key-value stores in your account.
Key-value stores are used to store arbitrary data records or files. This client provides methods to list, create, or get key-value stores by name.
https://docs.apify.com/platform/storage/key-value-store