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.
Declaration
protected virtual ValueTask<bool> ContainsItemAsyncCore(string key, CancellationToken cancellationToken)Parameters
| Type | Name | Description |
|---|---|---|
| string | key | The key of the cache item. |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| ValueTask<bool> | A Task that evaluates to |