Polly.Caching.IAsyncCacheProvider
Defines methods for classes providing asynchronous cache functionality for Polly CachePolicys.
namespace Polly.Caching
{
public interface IAsyncCacheProvider
{
Task<(bool, object)> TryGetAsync(string key, CancellationToken cancellationToken, bool continueOnCapturedContext);
Task PutAsync(string key, object value, Ttl ttl, CancellationToken cancellationToken, bool continueOnCapturedContext);
}
}