Skip to content

Search EricksonLopez.* Ecosystem

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

Core Concepts — Cache Providers, Fail-Safe & Tags

EricksonLopez.Caching models cache operations as explicit Result<T> contracts with bounded entry lifetimes and tenant isolation.

  • ICacheProvider: Exposes GetAsync<T>, GetManyAsync<T>, GetOrCreateAsync<T>, SetAsync<T>, SetManyAsync<T>, RemoveAsync, RemoveManyAsync, RemoveByPrefixAsync, ExistsAsync, ExpireAsync, and RefreshAsync.
  • ITaggedCacheProvider: Extends ICacheProvider with RemoveByTagAsync and RemoveByTagsAsync for logical invalidation across heterogeneous keys.
  • CacheEntryOptions supports FromAbsolute, FromSliding, and FromAbsoluteWithFailSafe factory helpers alongside Tags.
  • CacheEntryOptions.MaxAllowedDuration is enforced at TimeSpan.FromDays(3650) in source (CacheEntryOptions.cs:15), overriding older changelog prose that mentioned 365 days.
  • HybridCacheEntryOptions extends CacheEntryOptions with LocalCacheDuration, DistributedCacheDuration, and HybridCacheEntryOptions.FromDurations(local, distributed).
  • AddTenantPartitionedCache(services, sp => tenantResolver(sp)) wraps cache keys in tenant-scoped partitions.
  • For Native AOT builds, pass a source-generated JsonSerializerContext (JsonSerializerOptions) to SystemTextJsonCacheSerializer instead of SystemTextJsonCacheSerializer.Default.