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