Open sandboxFocus

Class MemoryCachingBackendBuilder

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