diff --git a/src/CoreEx/Abstractions/Reflection/TypeReflectorArgs.cs b/src/CoreEx/Abstractions/Reflection/TypeReflectorArgs.cs index 7fe3534f..4f77d526 100644 --- a/src/CoreEx/Abstractions/Reflection/TypeReflectorArgs.cs +++ b/src/CoreEx/Abstractions/Reflection/TypeReflectorArgs.cs @@ -31,7 +31,7 @@ public class TypeReflectorArgs(IJsonSerializer? jsonSerializer = null, IReflecti /// Gets the to use versus instantiating each per use. /// /// The and enable additional basic policy configuration for the cached items. - public IMemoryCache Cache { get; } = (MemoryCache?)cache ?? Internal.MemoryCache; + public IMemoryCache Cache { get; } = (MemoryCache?)cache ?? new MemoryCache(new MemoryCacheOptions()); /// /// Gets or sets the absolute expiration . Default to 24 hours.