Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public static TItem Set<TItem>(this IMemoryCache cache, object key, TItem value)
/// <param name="value">The value to associate with the key.</param>
/// <param name="absoluteExpiration">The point in time at which the cache entry will expire.</param>
/// <returns>The value that was set.</returns>
public static TItem Set<TItem>(this IMemoryCache cache, object key, TItem value, DateTimeOffset absoluteExpiration)
public static TItem Set<TItem>(this IMemoryCache cache, object key, TItem value, DateTimeOffset? absoluteExpiration)
{
using ICacheEntry entry = cache.CreateEntry(key);
entry.AbsoluteExpiration = absoluteExpiration;
Expand All @@ -110,7 +110,7 @@ public static TItem Set<TItem>(this IMemoryCache cache, object key, TItem value,
/// <param name="value">The value to associate with the key.</param>
/// <param name="absoluteExpirationRelativeToNow">The duration from now after which the cache entry will expire.</param>
/// <returns>The value that was set.</returns>
public static TItem Set<TItem>(this IMemoryCache cache, object key, TItem value, TimeSpan absoluteExpirationRelativeToNow)
public static TItem Set<TItem>(this IMemoryCache cache, object key, TItem value, TimeSpan? absoluteExpirationRelativeToNow)
{
using ICacheEntry entry = cache.CreateEntry(key);
entry.AbsoluteExpirationRelativeToNow = absoluteExpirationRelativeToNow;
Expand Down
Loading