MetalamaAPI documentationPatterns APIMetalama.​Patterns.​Caching.​BuildingMemory­Caching­Backend­Builder
Open sandboxFocus

MemoryCachingBackendBuilder Class

A CachingBackendBuilder that returns an in-memory, in-process caching back-end, backed by an IMemoryCache.

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

Methods

Name Description
CreateBackend(CreateBackendArgs)

Creates the CachingBackend.

WithMemoryCache(IMemoryCache)

Specifies the IMemoryCache to use.

WithMemoryCacheOptions(MemoryCacheOptions)

Specifies the options of the MemoryCache. This method is ignored if the WithMemoryCache(IMemoryCache) method is called.

Extension Methods

CachingBackendFactory.Memory(CachingBackendBuilder, MemoryCachingBackendConfiguration?)
CachingBackendFactory.Null(CachingBackendBuilder)
CachingBackendFactory.Specific(CachingBackendBuilder, CachingBackend)
CachingBackendFactory.Uninitialized(CachingBackendBuilder)
CachingBackendFactory.WithL1(ConcreteCachingBackendBuilder, LayeredCachingBackendConfiguration?)