Open sandboxFocus

Namespace PostSharp.Patterns.Caching.Resilience

Classes

BackgroundRetryPolicy

A RetryPolicy specialized in handling background operations. The BaseDelay property is set to 0.25 s.

DefaultExceptionHandlingPolicy

The default implementation of IExceptionHandlingPolicy. Logs and swallows all exceptions and try to recover from failed write operations by invalidating the cache in the background.

ExceptionInfo

Argument of the OnExceptionAsync(ExceptionInfo, CancellationToken) method, describing te current exception.

RecoveryActionExtensions

Extension methods for the RecoveryAction enum.

RetryPolicy

The default implementation of IRetryPolicy, implementing an exponential back-off with jitter effect. It can be configured by setting the properties.

TransactionRetryPolicy

A RetryPolicy specialized in handling Redis transaction conflicts. The NoDelayAttempts property defaults to 2.

Interfaces

IExceptionHandlingPolicy

Determines how exceptions should be handled in CachingBackend.

IRetryPolicy

Defines a TryAsync(OperationKind, int, Exception, ref object, CancellationToken) method that determines if a Redis transaction or operation should be retried if it fails. The default implementation is RetryPolicy.

Enums

OperationKind

Enumeration of operation kinds for TryAsync(OperationKind, int, Exception, ref object, CancellationToken) and IExceptionHandlingPolicy.

RecoveryAction

Remediation actions when an exception occurs in a CachingBackend. Returned by IExceptionHandlingPolicy.