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

ICacheProvider<TResult>

public interface ICacheProvider<TResult>
Defines methods for classes providing synchronous cache functionality for Polly CachePolicy<T>s.
TResult Get(string key)

Gets a value from cache.

void Put(string key, TResult value, TimeSpan ttl)

Puts the specified value in the cache.