Install
PyPI
Usage
To be able to use upstash-redis, you need to create a database on Upstash and grabUPSTASH_REDIS_REST_URL and
UPSTASH_REDIS_REST_TOKEN from the console.
Retry configuration
By default,upstash-redis retries a failed request once after 3 seconds.
Set rest_retries and rest_retry_interval (in seconds) to change this:
UPSTASH_REDIS_REST_URL and UPSTASH_REDIS_REST_TOKEN from your
environment. The same options work with upstash_redis.asyncio.Redis.
See Retry mechanism for details.