Configuration & Integrations — Caching
L2StableNuGet: v1.0.0Local HEAD: v2.0.0AOT: Full
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; })— registersMemoryCacheProvider. Always configure a finiteMaxCapacityin production because the default isnull(unbounded).services.AddRedisCaching(options => { ... })— registersRedisCacheProvider(IConnectionMultiplexerand factory overloads are also provided).services.AddHybridCache(localFactory, distributedFactory)— composesHybridCacheProvider(localCache, distributedCache)with optionalfailOpenOnRemoval.services.AddCacheInvalidator()/AddCacheInvalidator<TInvalidator>()— registers invalidation coordination services.services.AddTenantPartitionedCache(tenantIdResolver)— isolates keys per resolved tenant identifier.