PostSharpAPI ReferencePost­Sharp.​Patterns.​Caching.​ImplementationCaching­BackendInvalidate­Dependency­Async
Open sandboxFocus

CachingBackend.InvalidateDependencyAsync Method

InvalidateDependencyAsync(String, CancellationToken)

Asynchronously removes from the cache all items that have a specific dependency. This protected method is part of the implementation API and is meant to be overridden in user code, not invoked. Arguments are already validated by the consumer API.

Declaration
public Task InvalidateDependencyAsync([Required] string key, CancellationToken cancellationToken = null)
Parameters
Type Name Description
String key

The dependency key.

CancellationToken cancellationToken

A CancellationToken.

Returns
Type Description
Task

A Task.