Skip to content

Commit 83e96fc

Browse files
committed
Update Cache.cs
1 parent ac57803 commit 83e96fc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Polly.Benchmarks/Cache.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public MemoryCacheProvider(IMemoryCache memoryCache)
6666
_cache = memoryCache;
6767
}
6868

69-
public (bool, object) TryGet(string key)
69+
public (bool, object?) TryGet(string key)
7070
{
7171
bool cacheHit = _cache.TryGetValue(key, out var value);
7272
return (cacheHit, value);
@@ -96,7 +96,7 @@ public void Put(string key, object value, Ttl ttl)
9696
_cache.Set(key, value, options);
9797
}
9898

99-
public Task<(bool, object)> TryGetAsync(string key, CancellationToken cancellationToken, bool continueOnCapturedContext)
99+
public Task<(bool, object?)> TryGetAsync(string key, CancellationToken cancellationToken, bool continueOnCapturedContext)
100100
{
101101
return Task.FromResult(TryGet(key));
102102
}

0 commit comments

Comments
 (0)