langchain_community.storage.upstash_redis.UpstashRedisByteStore

class langchain_community.storage.upstash_redis.UpstashRedisByteStore(*, client: Any = None, url: Optional[str] = None, token: Optional[str] = None, ttl: Optional[int] = None, namespace: Optional[str] = None)[source]

BaseStore implementation using Upstash Redis as the underlying store to store raw bytes.

Methods

__init__(*[, client, url, token, ttl, namespace])

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__(*, client: Any = None, url: Optional[str] = None, token: Optional[str] = None, ttl: Optional[int] = None, namespace: Optional[str] = None) None[source]
mdelete(keys: Sequence[str]) None[source]

Delete the given keys.

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

Get the values associated with the given keys.

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

Set the given key-value pairs.

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

Yield keys in the store.