HybridCache is a single API for two-tier caching
HybridCache is an API that combines fast local IMemoryCache and distributed IDistributedCache, such as Redis.
HybridCache automatically works with two cache tiers, takes care of data serialization, and protects applications from cache stampede, a situation where many concurrent requests overload the database after the cache has expired.
HybridCache also supports invalidation by keys and tags, but retains an important limitation: local caches on other servers are not cleared instantly, so developers need to configure the L1 cache lifetime separately.