PostSharp 6.7 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Caching Namespace / Caching­Services.​Invalidation Class / Invalidation Methods / Invalidation.​Invalidate Method / Caching­Services.​Invalidation.​Invalidate Method (ICache­Dependency)

CachingServices.Invalidation.Invalidate Method (ICacheDependency)

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: 6.7.12.0 (6.7.12.0)
Syntax
C#
public static void Invalidate(
	ICacheDependency dependency
)

Parameters

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