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

ICacheProvider

public interface ICacheProvider
Defines methods for classes providing synchronous cache functionality for Polly CachePolicys.
object Get(string key)

Gets a value from cache.

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

Puts the specified value in the cache.