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
mdelete(keys: Sequence[str]) → None¶
Delete the given keys.
mget(keys: Sequence[str]) → List[Optional[str]]¶
Get the values associated with the given keys.
mset(key_value_pairs: Sequence[Tuple[str, str]]) → None¶
Set the given key-value pairs.
yield_keys(*, prefix: Optional[str] = None) → Iterator[str]¶
Yield keys in the store.