PostSharp6.6//API Reference/Post­Sharp.​Patterns.​Caching.​Backends Namespace/Memory­Caching­Backend Class/Memory­Caching­Backend Constructor/Memory­Caching­Backend Constructor (Memory­Cache)

MemoryCachingBackend Constructor (MemoryCache)

Initializes a new MemoryCachingBackend based on the given MemoryCache.

Namespace:  PostSharp.Patterns.Caching.Backends
Assembly:  PostSharp.Patterns.Caching (in PostSharp.Patterns.Caching.dll) Version: 6.6.11.0 (6.6.11.0)
Syntax
C#
public MemoryCachingBackend(
	MemoryCache cache
)

Parameters

cache
Type: System.Runtime.Caching.MemoryCache
A MemoryCache, or null to use the Default instance of the MemoryCache class.
See Also