PostSharp 2023.0 / / Post­Sharp Documentation / 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: 2023.0.3.0 (2023.0.3.0)
public static void Invalidate(
	Object 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