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

IAsyncCacheProvider

public interface IAsyncCacheProvider
Defines methods for classes providing asynchronous cache functionality for Polly CachePolicys.
Task PutAsync(string key, object value, Ttl ttl, CancellationToken cancellationToken, bool continueOnCapturedContext)

Puts the specified value in the cache asynchronously.

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

Gets a value from the cache asynchronously.