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
IReadOnlyCollection<String> keys

The dependency keys.

CancellationToken cancellationToken

A CancellationToken.

Returns
Type Description
ValueTask

A Task.