Skip to content

Commit

Permalink
Fix failing test.
Browse files Browse the repository at this point in the history
  • Loading branch information
chullybun committed Nov 9, 2024
1 parent e38c9aa commit c03a01a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CoreEx/Abstractions/Reflection/TypeReflectorArgs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public class TypeReflectorArgs(IJsonSerializer? jsonSerializer = null, IReflecti
/// Gets the <see cref="IMemoryCache"/> to use versus instantiating each <see cref="TypeReflector"/> per use.
/// </summary>
/// <remarks>The <see cref="AbsoluteExpirationTimespan"/> and <see cref="SlidingExpirationTimespan"/> enable additional basic policy configuration for the cached items.</remarks>
public IMemoryCache Cache { get; } = (MemoryCache?)cache ?? Internal.MemoryCache;
public IMemoryCache Cache { get; } = (MemoryCache?)cache ?? new MemoryCache(new MemoryCacheOptions());

/// <summary>
/// Gets or sets the <see cref="IMemoryCache"/> absolute expiration <see cref="TimeSpan"/>. Default to <c>24</c> hours.
Expand Down

0 comments on commit c03a01a

Please sign in to comment.