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
String key

The dependency key.

CancellationToken cancellationToken

A CancellationToken.

Returns
Type Description
ValueTask

A Task.