A CachingBackendEnhancer that modifies all write operations to run in the background and immediately return to the caller.
Implements
Namespace: PostSharp.Patterns.Caching.Backends
Assembly: PostSharp.Patterns.Caching.dll
Syntax
public class NonBlockingCachingBackendEnhancer : CachingBackendEnhancer, IDisposable
Constructors
Name | Description |
---|---|
NonBlockingCachingBackendEnhancer(CachingBackend) | Initializes a new CachingBackendEnhancer. |
Methods
Name | Description |
---|---|
ClearAsyncCore(CancellationToken) | Asynchronously clears the cache. This protected method is part of the implementation API and is meant to be overridden in user code, not invoked. |
ClearCore() | Clears the cache. This protected method is part of the implementation API and is meant to be overridden in user code, not invoked. |
CreateFeatures() | Creates a CachingBackendFeatures object, which describes set of features implemented by the back-end. This method is invoked the first time the SupportedFeatures property is evaluated. The result is then cached. |
DisposeAsyncCore(CancellationToken) | Asynchronously disposes the current CachingBackend. This protected method is part of the implementation API and is meant to be overridden in user code, not invoked. |
DisposeCore(bool) | Synchronously disposes the current CachingBackend. This protected method is part of the implementation API and is meant to be overridden in user code, not invoked. |
InvalidateDependencyAsyncCore(string, CancellationToken) | Asynchronously removes from the cache all items that have a specific dependency. This protected method is part of the implementation API and is meant to be overridden in user code, not invoked. Arguments are already validated by the consumer API. |
InvalidateDependencyCore(string) | Removes from the cache all items that have a specific dependency. This protected method is part of the implementation API and is meant to be overridden in user code, not invoked. Arguments are already validated by the consumer API. |
RemoveItemAsyncCore(string, CancellationToken) | Asynchronously removes a cache item from the cache given its key. This protected method is part of the implementation API and is meant to be overridden in user code, not invoked. Arguments are already validated by the consumer API. |
RemoveItemCore(string) | Removes a cache item from the cache given its key. This protected method is part of the implementation API and is meant to be overridden in user code, not invoked. Arguments are already validated by the consumer API. |
SetItemAsyncCore(string, CacheItem, CancellationToken) | Asynchronously sets a cache item. This protected method is part of the implementation API and is meant to be overridden in user code, not invoked. Arguments are already validated by the consumer API. The default implementation is to call the synchronous SetItemCore(string, CacheItem) method. |
SetItemCore(string, CacheItem) | Sets a cache item. This protected method is part of the implementation API and is meant to be overridden in user code, not invoked. Arguments are already validated by the consumer API. |