PostSharpAPI ReferencePost­Sharp.​Patterns.​Caching.​BackendsMemory­Caching­BackendMemory­Caching­Backend
Open sandboxFocus

MemoryCachingBackend Constructor

MemoryCachingBackend()

Initializes a new MemoryCachingBackend based on the Default instance of the MemoryCache class.

Declaration
public MemoryCachingBackend()

MemoryCachingBackend(MemoryCache)

Initializes a new MemoryCachingBackend based on the given MemoryCache.

Declaration
public MemoryCachingBackend(MemoryCache cache)
Parameters
Type Name Description
MemoryCache cache

A MemoryCache, or null to use the Default instance of the MemoryCache class.