PostSharpAPI ReferencePost­Sharp.​Patterns.​Caching.​ImplementationCaching­BackendSet­Item­Async­Core
Open sandboxFocus

CachingBackend.SetItemAsyncCore Method

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.

protected virtual Task SetItemAsyncCore(string key, CacheItem item, CancellationToken cancellationToken)
Type Name Description
String key

The key of the cache item.

CacheItem item

The cache item.

CancellationToken cancellationToken

A CancellationToken.

Type Description

A Task.