Skip to content

Commit

Permalink
Fix CacheEntryExtensions.SetValue()'s signature to allow null val…
Browse files Browse the repository at this point in the history
…ues (#77305)
  • Loading branch information
maxkoshevoi authored Oct 21, 2022
1 parent b5a27cd commit f436780
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public static partial class CacheEntryExtensions
public static Microsoft.Extensions.Caching.Memory.ICacheEntry SetPriority(this Microsoft.Extensions.Caching.Memory.ICacheEntry entry, Microsoft.Extensions.Caching.Memory.CacheItemPriority priority) { throw null; }
public static Microsoft.Extensions.Caching.Memory.ICacheEntry SetSize(this Microsoft.Extensions.Caching.Memory.ICacheEntry entry, long size) { throw null; }
public static Microsoft.Extensions.Caching.Memory.ICacheEntry SetSlidingExpiration(this Microsoft.Extensions.Caching.Memory.ICacheEntry entry, System.TimeSpan offset) { throw null; }
public static Microsoft.Extensions.Caching.Memory.ICacheEntry SetValue(this Microsoft.Extensions.Caching.Memory.ICacheEntry entry, object value) { throw null; }
public static Microsoft.Extensions.Caching.Memory.ICacheEntry SetValue(this Microsoft.Extensions.Caching.Memory.ICacheEntry entry, object? value) { throw null; }
}
public static partial class CacheExtensions
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ public static ICacheEntry RegisterPostEvictionCallback(
/// <returns>The <see cref="ICacheEntry"/> for chaining.</returns>
public static ICacheEntry SetValue(
this ICacheEntry entry,
object value)
object? value)
{
entry.Value = value;
return entry;
Expand Down

0 comments on commit f436780

Please sign in to comment.