Polly.Caching.IAsyncCacheProvider<TResult>
Defines methods for classes providing asynchronous cache functionality for Polly CachePolicy<T>s.
namespace Polly.Caching
{
public interface IAsyncCacheProvider<[System.Runtime.CompilerServices.Nullable(2)] TResult>
{
Task<(bool, TResult)> TryGetAsync(string key, CancellationToken cancellationToken, bool continueOnCapturedContext);
Task PutAsync(string key, TResult value, Ttl ttl, CancellationToken cancellationToken, bool continueOnCapturedContext);
}
}