ISyncCacheProvider
Defines methods for classes providing synchronous cache functionality for Polly CachePolicys.
using System.Runtime.CompilerServices;
namespace Polly.Caching
{
[System.Runtime.CompilerServices.NullableContext(1)]
public interface ISyncCacheProvider
{
[return: System.Runtime.CompilerServices.Nullable(new byte[] {
0,
2
})]
(bool, object) TryGet(string key);
void Put(string key, [System.Runtime.CompilerServices.Nullable(2)] object value, Ttl ttl);
}
}