PostSharp5.0/API Reference/Post­Sharp.​Patterns.​Caching Namespace/Caching­Services.​Invalidation Class/Invalidation Methods/Invalidation.​Invalidate­Async Method/Caching­Services.​Invalidation.​Invalidate­Async Method (ICache­Dependency)

CachingServices.Invalidation.InvalidateAsync Method (ICacheDependency)

Asynchronously invalidates a cache dependency given as an ICacheDependency, i.e. removes all cache items that are dependent on this dependency.

Namespace:  PostSharp.Patterns.Caching
Assembly:  PostSharp.Patterns.Caching (in PostSharp.Patterns.Caching.dll) Version: 5.0.55.0 (5.0.55.0)
Syntax
C#
public static Task InvalidateAsync(
	ICacheDependency dependency
)

Parameters

dependency
Type: PostSharp.Patterns.Caching.Dependencies.ICacheDependency
A dependency.

Return Value

Type: Task
A Task.
See Also