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; } 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); }