langchain_community.storage.upstash_redis.UpstashRedisStore¶
class langchain_community.storage.upstash_redis.UpstashRedisStore(*, client: Any = None, url: Optional[str] = None, token: Optional[str] = None, ttl: Optional[int] = None, namespace: Optional[str] = None)[source]¶
[Deprecated]  BaseStore implementation using Upstash Redis
as the underlying store to store strings.
Deprecated in favor of the more generic UpstashRedisByteStore.[Deprecated] BaseStore implementation using Upstash Redis
as the underlying store to store strings.
Deprecated in favor of the more generic UpstashRedisByteStore.
Notes
Deprecated since version 0.0.335: Use UpstashRedisByteStore instead.
Initialize the UpstashRedisStore with HTTP API.
Must provide either an Upstash Redis client or a url.
Parameters
client – An Upstash Redis instance
url – UPSTASH_REDIS_REST_URL
token – UPSTASH_REDIS_REST_TOKEN
ttl – time to expire keys in seconds if provided,
if None keys will never expire
namespace – if provided, all keys will be prefixed with this namespace
Methods
__init__(*[, client, url, token, ttl, namespace])
Initialize the UpstashRedisStore with HTTP API.
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¶
Initialize the UpstashRedisStore with HTTP API.