Skip to main content

KeyValueStoreCollectionClient

crawlee.memory_storage_client.key_value_store_collection_client.KeyValueStoreCollectionClient

Subclient for manipulating key-value stores.

Index

Constructors

Methods

Constructors

__init__

  • __init__(*, memory_storage_client): None
  • Parameters

    • memory_storage_client: MemoryStorageClientkeyword-only

    Returns None

Methods

get_or_create

  • async get_or_create(*, name, schema, id): KeyValueStoreMetadata
  • Parameters

    • name: str | None = Nonekeyword-only
    • schema: dict | None = Nonekeyword-only
    • id: str | None = Nonekeyword-only

    Returns KeyValueStoreMetadata

list

  • async list(*, unnamed, limit, offset, desc): KeyValueStoreListPage
  • Parameters

    • unnamed: bool = Falsekeyword-only
    • limit: int | None = Nonekeyword-only
    • offset: int | None = Nonekeyword-only
    • desc: bool = Falsekeyword-only

    Returns KeyValueStoreListPage