Open sandboxFocus

Class CachingBackendFactory

Inheritance
CachingBackendFactory
Namespace: Metalama.Patterns.Caching.Building
Assembly: Metalama.Patterns.Caching.Backend.dll
Syntax
public static class CachingBackendFactory

Methods

Name Description
Memory(CachingBackendBuilder, MemoryCachingBackendConfiguration?)

Creates an in-memory caching backend based on a MemoryCache.

Null(CachingBackendBuilder)

Creates a CachingBackendBuilder that returns an instance of the CachingBackend class that does not do anything.

Specific(CachingBackendBuilder, CachingBackend)

Creates a CachingBackendBuilder that returns a specific instance of the CachingBackend class. This method is used in tests.

Uninitialized(CachingBackendBuilder)

Creates a CachingBackend that throws an exception whenever it is used.

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.

WithL1(OutOfProcessCachingBackendBuilder, LayeredCachingBackendConfiguration?)

Adds an in-memory, in-process L1 cache in front of an out-of-process cache.