From 9bdd3a08977c49e84d6ace364e7018126b465d36 Mon Sep 17 00:00:00 2001 From: Maksym Koshovyi Date: Wed, 23 Feb 2022 22:33:10 +0200 Subject: [PATCH 1/2] Update PostEvictionDelegate.cs --- .../src/PostEvictionDelegate.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libraries/Microsoft.Extensions.Caching.Abstractions/src/PostEvictionDelegate.cs b/src/libraries/Microsoft.Extensions.Caching.Abstractions/src/PostEvictionDelegate.cs index edc209fe450b73..6414f2154a9e4c 100644 --- a/src/libraries/Microsoft.Extensions.Caching.Abstractions/src/PostEvictionDelegate.cs +++ b/src/libraries/Microsoft.Extensions.Caching.Abstractions/src/PostEvictionDelegate.cs @@ -10,5 +10,5 @@ namespace Microsoft.Extensions.Caching.Memory /// The value of the entry being evicted. /// The . /// The information that was passed when registering the callback. - public delegate void PostEvictionDelegate(object key, object value, EvictionReason reason, object state); + public delegate void PostEvictionDelegate(object key, object? value, EvictionReason reason, object? state); } From 639157e0c1aa03699c0e33419fe9f6e11a375fb4 Mon Sep 17 00:00:00 2001 From: Maksym Koshovyi Date: Wed, 23 Feb 2022 22:49:06 +0200 Subject: [PATCH 2/2] Fix GetOrCreateAsync --- .../ref/Microsoft.Extensions.Caching.Abstractions.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libraries/Microsoft.Extensions.Caching.Abstractions/ref/Microsoft.Extensions.Caching.Abstractions.cs b/src/libraries/Microsoft.Extensions.Caching.Abstractions/ref/Microsoft.Extensions.Caching.Abstractions.cs index 195837c3a55f9d..2805ac7644c9d0 100644 --- a/src/libraries/Microsoft.Extensions.Caching.Abstractions/ref/Microsoft.Extensions.Caching.Abstractions.cs +++ b/src/libraries/Microsoft.Extensions.Caching.Abstractions/ref/Microsoft.Extensions.Caching.Abstractions.cs @@ -60,7 +60,7 @@ public static partial class CacheEntryExtensions public static partial class CacheExtensions { public static object? Get(this Microsoft.Extensions.Caching.Memory.IMemoryCache cache, object key) { throw null; } - public static System.Threading.Tasks.Task GetOrCreateAsync(this Microsoft.Extensions.Caching.Memory.IMemoryCache cache, object key, System.Func> factory) { throw null; } + public static System.Threading.Tasks.Task GetOrCreateAsync(this Microsoft.Extensions.Caching.Memory.IMemoryCache cache, object key, System.Func> factory) { throw null; } public static TItem? GetOrCreate(this Microsoft.Extensions.Caching.Memory.IMemoryCache cache, object key, System.Func factory) { throw null; } public static TItem? Get(this Microsoft.Extensions.Caching.Memory.IMemoryCache cache, object key) { throw null; } public static TItem Set(this Microsoft.Extensions.Caching.Memory.IMemoryCache cache, object key, TItem value) { throw null; }