Skip to content

Search EricksonLopez.* Ecosystem

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

Configuration & Integrations — Caching

Register memory, Redis, hybrid, and tenant-partitioned cache providers using the fluent extensions in EricksonLopez.Caching and EricksonLopez.Caching.Redis.

  • services.AddMemoryCacheProvider(options => { options.MaxCapacity = 10_000; }) — registers MemoryCacheProvider. Always configure a finite MaxCapacity in production because the default is null (unbounded).
  • services.AddRedisCaching(options => { ... }) — registers RedisCacheProvider (IConnectionMultiplexer and factory overloads are also provided).
  • services.AddHybridCache(localFactory, distributedFactory) — composes HybridCacheProvider(localCache, distributedCache) with optional failOpenOnRemoval.
  • services.AddCacheInvalidator() / AddCacheInvalidator<TInvalidator>() — registers invalidation coordination services.
  • services.AddTenantPartitionedCache(tenantIdResolver) — isolates keys per resolved tenant identifier.