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

ISyncCacheProvider<TResult>

public interface ISyncCacheProvider<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, Ttl ttl)

Puts the specified value in the cache.