Open sandboxFocus

Method RemoveItemAsync

RemoveItemAsync(string, CancellationToken)

Asynchronously removes a cache item from the cache given its key.

Declaration
public ValueTask RemoveItemAsync(string key, CancellationToken cancellationToken = default)
Parameters
Type Name Description
string key

The key of the cache item.

CancellationToken cancellationToken

A CancellationToken.

Returns
Type Description
ValueTask

A Task.