<PackageReference Include="Polly" Version="5.1.1-v5-x-cachealpha0001" />

ICacheProviderAsync<TResult>

public interface ICacheProviderAsync<TResult>
Defines methods for classes providing asynchronous cache functionality for Polly CachePolicy<T>s.
Task<TResult> GetAsync(string key, CancellationToken cancellationToken, bool continueOnCapturedContext)

Gets a value from the cache asynchronously.

Task PutAsync(string key, TResult value, TimeSpan ttl, CancellationToken cancellationToken, bool continueOnCapturedContext)

Puts the specified value in the cache asynchronously.