Skip to content

Latest commit

 

History

History
16 lines (12 loc) · 573 Bytes

automatic-retries.md

File metadata and controls

16 lines (12 loc) · 573 Bytes
slug title
automatic-retries
Automatic Retries

One feature that improves the resilience of RedisClient connections is Auto Retry where the RedisClient will transparently retry failed Redis operations due to Socket and I/O Exceptions in an exponential backoff starting from 10ms up until the RetryTimeout of 10000ms. These defaults can be tweaked with:

Usage

RedisConfig.DefaultRetryTimeout = 10000;
RedisConfig.BackOffMultiplier = 10;

The RetryTimeout can also be configured on the connection string with ?RetryTimeout=10000.