PostSharp.ILAPI ReferencePost­Sharp.​Patterns.​Caching.​BackendsMemory­Caching­Backend
Open sandboxFocus

MemoryCachingBackend Class

A CachingBackend based on System.Runtime.Caching.MemoryCache (MemoryCache). This cache is part of .NET Framework and is available for .NET Standard in the NuGet package System.Runtime.Caching.

Inheritance
MemoryCachingBackend
Implements
System.IDisposable
Namespace: PostSharp.Patterns.Caching.Backends
Assembly: PostSharp.Patterns.Caching.dll
Syntax
public sealed class MemoryCachingBackend : CachingBackend

Constructors

Name Description
MemoryCachingBackend()

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

MemoryCachingBackend(MemoryCache)

Initializes a new MemoryCachingBackend based on the given MemoryCache.

Methods

Name Description
ClearCore()
ContainsDependencyCore(String)
ContainsItemCore(String)
GetItemCore(String, Boolean)
InvalidateDependencyCore(String)
RemoveItemCore(String)
SetItemCore(String, CacheItem)