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

CachingServices.Invalidation.Invalidate Method (Object)

Invalidates a cache dependency given an Object, i.e. removes all cached items that are dependent on that object.

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 void Invalidate(
	Object dependency
)

Parameters

dependency
Type: System.Object
Typically, an Object. If a String, Delegate or ICacheDependency is passed, the proper overload of the method is invoked. Otherwise, dependency is wrapped into an ObjectDependency object.
See Also