CachingBackend.ContainsItemAsync Method
ContainsItemAsync(String, CancellationToken)
Asynchronously determines whether the cache contains an item of a given key.
Declaration
public ValueTask<bool> ContainsItemAsync(string key, CancellationToken cancellationToken = null)
Parameters
Type | Name | Description |
---|---|---|
String | key | The key of the cache item. |
CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
ValueTask<Boolean> | A Task that evaluates to |