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

CachingBackend.InvalidateDependenciesAsync Method

InvalidateDependenciesAsync(IReadOnlyCollection<String>, CancellationToken)

Asynchronously removes from the cache all items that have one of the specified dependencies.

Declaration
public ValueTask InvalidateDependenciesAsync(IReadOnlyCollection<string> keys, CancellationToken cancellationToken = null)
Parameters
Type Name Description
System.Collections.Generic.IReadOnlyCollection<System.String> keys

The dependency keys.

System.Threading.CancellationToken cancellationToken

A System.Threading.CancellationToken.

Returns
Type Description
System.Threading.Tasks.ValueTask

A System.Threading.Tasks.Task.