Open sandboxFocus

Class LayeredCachingBackendBuilder

A CachingBackendBuilder that adds an in-memory L1 cache in front a another, typically out-of-process, cache.

Inheritance
LayeredCachingBackendBuilder
Namespace: Metalama.Patterns.Caching.Building
Assembly: Metalama.Patterns.Caching.Backend.dll
Syntax
public sealed class LayeredCachingBackendBuilder : ConcreteCachingBackendBuilder

Methods

Name Description
CreateBackend(CreateBackendArgs)

Creates the CachingBackend.

WithMemoryCache(IMemoryCache)

Specifies the IMemoryCache to use for the L1 layer.

WithMemoryCacheOptions(MemoryCacheOptions)

Specifies the options for the MemoryCache used as the L1 layer. This method is ignored if WithMemoryCache(IMemoryCache) is called.

Extension Methods