IAsyncCacheProvider<TResult>
Defines methods for classes providing asynchronous cache functionality for Polly CachePolicy<T>s.
using System.Threading;
using System.Threading.Tasks;
namespace Polly.Caching
{
public interface IAsyncCacheProvider<TResult>
{
Task<TResult> GetAsync(string key, CancellationToken cancellationToken, bool continueOnCapturedContext);
Task PutAsync(string key, TResult value, Ttl ttl, CancellationToken cancellationToken, bool continueOnCapturedContext);
}
}