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.
rest_retries and rest_retry_interval (seconds) to the client, e.g.
Redis.from_env(rest_retries=3, rest_retry_interval=2). See the Retry
mechanism section for details.
If you are in a serverless environment that allows it, it’s recommended to
initialise the client outside the request handler to be reused while your
function is still hot.
Running commands might look like this: