Open sandboxFocus

Namespace PostSharp.Patterns.Caching.Backends

Classes

MemoryCacheBackend

A CachingBackend based on Microsoft.Extensions.Caching.Memory.IMemoryCache (IMemoryCache). This cache is recommended for ASP.NET Core use (as opposed to System.Runtime.Caching.MemoryCache).

MemoryCacheValue

Represents a CacheValue with an extra object that functions as a lock. Caching backends use this class. Do not use it if you are not implementing a CachingBackend.

MemoryCachingBackend

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.

NonBlockingCachingBackendEnhancer

A CachingBackendEnhancer that modifies all write operations to run in the background and immediately return to the caller.

NullCachingBackend

An implementation of CachingBackend that does not cache at all.

TwoLayerCachingBackendEnhancer

A CachingBackendEnhancer that adds a local (fast) MemoryCachingBackend to a remote (slower) cache. This class is typically instantiated in the backend factory method. You should not normally use this class unless you develop a custom caching backend.

UninitializedCachingBackend

A CachingBackend that throws an exception when it is used. This is the active default backend until you set DefaultBackend to something else.