<PackageReference Include="Polly" Version="8.6.4" />

Polly.Caching.IAsyncCacheProvider<TResult>

public interface 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); } }