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

ISyncCacheProvider

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

Puts the specified value in the cache.