PostSharp6.5/API Reference/Post­Sharp.​Patterns.​Caching.​Backends Namespace

PostSharp.Patterns.Caching.Backends Namespace

This namespace contains implementations of adapters for specific caching back-ends.
Classes
  ClassDescription
Public classMemoryCacheBackend
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).
Public classMemoryCacheValue
Meant to be used by caching backends. It's a CacheValue with an extra object that functions as a lock. Do not use this if you're not implementing a CachingBackend.
Public classMemoryCachingBackend
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.
Public classNonBlockingCachingBackendEnhancer
A CachingBackendEnhancer that modifies all write operations to run in the background and immediately return to the caller.
Public classNullCachingBackend
An implementation of CachingBackend that does not cache at all.
Public classTwoLayerCachingBackendEnhancer
A CachingBackendEnhancer that adds a local (fast) MemoryCachingBackend to a remote (slower) cache. This class is typically instantiate in the back-end factory method. You should normally not use this class unless you develop a custom caching back-end.
Public classTwoLayerCachingBackendEnhancer.TwoLayerCacheValue
The object stored in the remote class.