Skip to content

Search EricksonLopez.* Ecosystem

Type a library name, NuGet package ID, .NET type, or architectural concept to search across the portal.

Troubleshooting — EricksonLopez.Caching

Common operational pitfalls when configuring EricksonLopez.Caching (1.0.0).

  • Symptom: Memory usage climbs steadily under high key cardinality.
  • Cause: MemoryCacheOptions.MaxCapacity defaults to null (unbounded).
  • Fix: Always configure a finite MaxCapacity in AddMemoryCacheProvider(opt => opt.MaxCapacity = 50_000).
  • Symptom: Calling RemoveByPrefixAsync("") or whitespace throws ArgumentException (ArgumentException.ThrowIfNullOrWhiteSpace).
  • Fix: Always pass a non-empty key prefix, or use explicit RemoveByTagAsync / RemoveAsync.
  • Symptom: NotSupportedException or missing type metadata during Native AOT serialization.
  • Fix: Pass a [JsonSerializable]-backed JsonSerializerOptions instance to SystemTextJsonCacheSerializer instead of SystemTextJsonCacheSerializer.Default.