Skip to content
This repository has been archived by the owner on Nov 19, 2021. It is now read-only.
/ RedisRetry Public archive

A retry wrapper for StackExchange.Redis

License

Notifications You must be signed in to change notification settings

Cint/RedisRetry

Repository files navigation

RedisRetry

Build status

A simple retry wrapper for StackExchange.Redis

Features

RedisRetry is a library that you can add to your project that will extend your IDatabase interface.

It provides retry functionality (using Polly) for common Redis commands.

When is it safe to retry?

Each application needs to decide what operations can be retried and which cannot. See https://gist.github.com/JonCole/925630df72be1351b21440625ff2671f#when-is-it-safe-to-retry for a more in-depth answer.

For most applications idempotent operations should be safe to retry. For example HashGetAsync or KeyExpireAsync are idempotent while HashIncrementAsync is not.