We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a1a44f3 + 852182f commit 3722754Copy full SHA for 3722754
src/EFCoreSecondLevelCacheInterceptor.HybridCache/EFHybridCacheProvider.cs
@@ -1,4 +1,4 @@
1
-using System;
+using System;
2
using System.Collections.Generic;
3
using System.Threading.Tasks;
4
using Microsoft.Extensions.Caching.Hybrid;
@@ -63,10 +63,7 @@ public void ClearAllCachedEntries()
63
ArgumentNullException.ThrowIfNull(cacheKey);
64
65
return hybridCache.GetOrCreateAsync<EFCachedData?>(cacheKey.KeyHash, factory
66
- => ValueTask.FromResult<EFCachedData?>(new EFCachedData
67
- {
68
- IsNull = true
69
- }))
+ => ValueTask.FromResult<EFCachedData?>(null))
70
.Preserve()
71
.GetAwaiter()
72
.GetResult();
0 commit comments