langchain_community.storage.astradb.AstraDBBaseStore¶

class langchain_community.storage.astradb.AstraDBBaseStore(collection_name: str, token: Optional[str] = None, api_endpoint: Optional[str] = None, astra_db_client: Optional[Any] = None, namespace: Optional[str] = None)[source]¶

Methods

__init__(collection_name[, token, ...])

decode_value(value)

Decodes value from Astra DB

encode_value(value)

Encodes value for Astra DB

mdelete(keys)

Delete the given keys.

mget(keys)

Get the values associated with the given keys.

mset(key_value_pairs)

Set the given key-value pairs.

yield_keys(*[, prefix])

Yield keys in the store.

__init__(collection_name: str, token: Optional[str] = None, api_endpoint: Optional[str] = None, astra_db_client: Optional[Any] = None, namespace: Optional[str] = None) None[source]¶
abstract decode_value(value: Any) Optional[V][source]¶

Decodes value from Astra DB

abstract encode_value(value: Optional[V]) Any[source]¶

Encodes value for Astra DB

mdelete(keys: Sequence[str]) None[source]¶

Delete the given keys.

mget(keys: Sequence[str]) List[Optional[V]][source]¶

Get the values associated with the given keys.

mset(key_value_pairs: Sequence[Tuple[str, V]]) None[source]¶

Set the given key-value pairs.

yield_keys(*, prefix: Optional[str] = None) Iterator[str][source]¶

Yield keys in the store.