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

Polly.Caching.ISyncCacheProvider<TResult>

public interface ISyncCacheProvider<TResult>
Defines methods for classes providing synchronous cache functionality for Polly CachePolicy<T>s.
void Put(string key, TResult value, Ttl ttl)

Puts the specified value in the cache.

ValueTuple<bool, TResult> TryGet(string key)

Gets a value from cache.