Open sandboxFocus

Method WithL1

WithL1(OutOfProcessCachingBackendBuilder, LayeredCachingBackendConfiguration?)

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
Type Name Description
OutOfProcessCachingBackendBuilder builder
LayeredCachingBackendConfiguration configuration
Returns
Type Description
LayeredCachingBackendBuilder

WithL1(ConcreteCachingBackendBuilder, LayeredCachingBackendConfiguration?)

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
Type Name Description
ConcreteCachingBackendBuilder builder
LayeredCachingBackendConfiguration configuration
Returns
Type Description
LayeredCachingBackendBuilder