PostSharp6.6//API Reference/Post­Sharp.​Patterns.​Caching.​Backends Namespace/Memory­Caching­Backend Class/Memory­Caching­Backend Methods

MemoryCachingBackend Methods

The MemoryCachingBackend type exposes the following members.

Methods
  NameDescription
Public methodClear
Clears the cache.
(Inherited from CachingBackend.)
Public methodClearAsync
Asynchronously clears the cache.
(Inherited from CachingBackend.)
Public methodContainsDependency
Determines whether the cache contains a given dependency.
(Inherited from CachingBackend.)
Public methodContainsDependencyAsync
Asynchronously determines whether the cache contains a given dependency.
(Inherited from CachingBackend.)
Public methodContainsItem
Determines whether the cache contains an item of a given key.
(Inherited from CachingBackend.)
Public methodContainsItemAsync
Asynchronously determines whether the cache contains an item of a given key.
(Inherited from CachingBackend.)
Public methodDispose()
Synchronously disposes the current CachingBackend.
(Inherited from CachingBackend.)
Public methodDisposeAsync
Asynchronously dispose the current CachingBackend.
(Inherited from CachingBackend.)
Public methodGetItem
Gets a cache item given its key.
(Inherited from CachingBackend.)
Public methodGetItemAsync
Asynchronously gets a cache item given its key.
(Inherited from CachingBackend.)
Public methodInvalidateDependency
Removes from the cache all items that have a specific dependency.
(Inherited from CachingBackend.)
Public methodInvalidateDependencyAsync
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.
(Inherited from CachingBackend.)
Public methodRemoveItem
Removes a cache item from the cache given its key.
(Inherited from CachingBackend.)
Public methodRemoveItemAsync
Asynchronously removes a cache item from the cache given its key.
(Inherited from CachingBackend.)
Public methodSetItem
Sets a cache item.
(Inherited from CachingBackend.)
Public methodSetItemAsync
Asynchronously sets a cache item.
(Inherited from CachingBackend.)
Public methodToString
Returns a string that represents the current object.
(Inherited from CachingBackend.)
Public methodWhenBackgroundTasksCompleted
Returns a Task that is signaled to the complete state when all background tasks have completed.
(Inherited from CachingBackend.)
See Also