MetalamaAPI documentationPatterns APIMetalama.​Patterns.​Caching.​BackendsCaching­BackendRemove­Item­Async
Open sandboxFocus

CachingBackend.RemoveItemAsync Method

RemoveItemAsync(String, CancellationToken)

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

Declaration
public ValueTask RemoveItemAsync(string key, CancellationToken cancellationToken = null)
Parameters
Type Name Description
System.String key

The key of the cache item.

System.Threading.CancellationToken cancellationToken

A System.Threading.CancellationToken.

Returns
Type Description
System.Threading.Tasks.ValueTask

A System.Threading.Tasks.Task.