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

IAsyncCacheProvider<TResult>

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

Puts the specified value in the cache asynchronously.

Task<ValueTuple<bool, TResult>> TryGetAsync(string key, CancellationToken cancellationToken, bool continueOnCapturedContext)

Gets a value from the cache asynchronously.