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

CachingBackend.ContainsItemAsyncCore Method

ContainsItemAsyncCore(String, CancellationToken)

Asynchronously determines whether the cache contains an item of a given 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.

protected virtual Task<bool> ContainsItemAsyncCore(string key, CancellationToken cancellationToken)
Type Name Description
String key

The key of the cache item.

CancellationToken cancellationToken

A CancellationToken.

Type Description

A Task that evaluates to true if the cache contains an item whose key is key, otherwise false.