PostSharp.ILAPI ReferencePost­Sharp.​Patterns.​Caching.​BackendsTwo­Layer­Caching­Backend­Enhancer
Open sandboxFocus

TwoLayerCachingBackendEnhancer Class

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.

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

Constructors

Name Description
TwoLayerCachingBackendEnhancer(CachingBackend, MemoryCachingBackend)

Initializes a new TwoLayerCachingBackendEnhancer.

Properties

Name Description
LocalCache

Gets the in-memory local cache.

Methods

Name Description
ClearAsyncCore(CancellationToken)
ClearCore()
ContainsDependencyAsyncCore(String, CancellationToken)
ContainsDependencyCore(String)
ContainsItemAsyncCore(String, CancellationToken)
ContainsItemCore(String)
CreateFeatures()
DisposeAsyncCore(CancellationToken)
DisposeCore(Boolean)
GetItemAsyncCore(String, Boolean, CancellationToken)
GetItemCore(String, Boolean)
InvalidateDependencyAsyncCore(String, CancellationToken)
InvalidateDependencyCore(String)
OnBackendDependencyInvalidated(Object, CacheDependencyInvalidatedEventArgs)
OnBackendItemRemoved(Object, CacheItemRemovedEventArgs)
RemoveItemAsyncCore(String, CancellationToken)
RemoveItemCore(String)
SetItemAsyncCore(String, CacheItem, CancellationToken)
SetItemCore(String, CacheItem)