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

Polly.Caching.IAsyncCacheProvider

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