MetalamaAPI documentationPatterns APIMetalama.​Patterns.​Caching.​BackendsCaching­BackendInvalidate­Dependency­Async
Open sandboxFocus

CachingBackend.InvalidateDependencyAsync Method

InvalidateDependencyAsync(String, CancellationToken)

Asynchronously removes from the cache all items that have a specific dependency.

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

The dependency key.

System.Threading.CancellationToken cancellationToken

A System.Threading.CancellationToken.

Returns
Type Description
System.Threading.Tasks.ValueTask

A System.Threading.Tasks.Task.