Open sandboxFocus

Method ContainsDependencyAsync

ContainsDependencyAsync(string, CancellationToken)

Asynchronously determines whether the cache contains a given dependency.

Declaration
public ValueTask<bool> ContainsDependencyAsync(string key, CancellationToken cancellationToken = default)
Parameters
Type Name Description
string key

The dependency key.

CancellationToken cancellationToken

A CancellationToken.

Returns
Type Description
ValueTask<bool>

A Task evaluating to true if the cache contains the dependency key, otherwise false.