RemoveItemAsync(string, CancellationToken)
Asynchronously removes a cache item from the cache given its key.
Declaration
public Task RemoveItemAsync(string key, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
string | key | The key of the cache item. |
CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
Task | A Task. |