Skip to main content
By default @upstash/redis will retry sending you request when network errors occur. It will retry 5 times with a backoff of (retryCount) => Math.exp(retryCount) * 50 milliseconds. You can customize this in the Redis constructor:
The exact type definition can be found here. The Python SDK exposes retry settings through the rest_retries and rest_retry_interval constructor options; see the Retry mechanism section in the Python documentation.