Defines a TryAsync(OperationKind, int, Exception, ref object, CancellationToken) method that determines whether a Redis transaction or operation should be retried if it fails. The default implementation is RetryPolicy.
Namespace: PostSharp.Patterns.Caching.Resilience
Assembly: PostSharp.Patterns.Caching.dll
Syntax
public interface IRetryPolicyRemarks
The Redis backend takes its retry policies from the TransactionRetryPolicy, BackgroundTasksRetryPolicy and
BackgroundRecoveryRetryPolicy properties of its configuration. RetryPolicy implements an exponential back-off with jitter.
Methods
| Name | Description |
|---|---|
| TryAsync(OperationKind, int, Exception, ref object, CancellationToken) | Determines whether a Redis transaction should be tried, and throws a CachingException if it cannot. |