CachingBackendFactory.WithL1 Method
Adds an in-memory, in-process L1 cache in front of an out-of-process cache.
Declaration
public static LayeredCachingBackendBuilder WithL1(this OutOfProcessCachingBackendBuilder builder, LayeredCachingBackendConfiguration? configuration = null)
Parameters
Returns
Adds an in-memory, in-process L1 cache in front of another in-memory back-end. This method is used for tests.
Declaration
[Obsolete("Adding a memory cache on the top of another memory cache should only be used in tests.")]
public static LayeredCachingBackendBuilder WithL1(this ConcreteCachingBackendBuilder builder, LayeredCachingBackendConfiguration? configuration = null)
Parameters
Returns