PostSharp6.2/API Reference/Post­Sharp.​Patterns.​Caching Namespace/Caching­Services.​Invalidation Class/Invalidation Methods/Invalidation.​Invalidate Method

Invalidation.Invalidate Method

Overload List
  NameDescription
Public methodStatic memberInvalidate<TReturn>(Func<TReturn>)
Removes a method call result from the cache giving the delegate of the method. This overload is for methods with 0 parameter.
Public methodStatic memberInvalidate(Object)
Invalidates a cache dependency given an Object, i.e. removes all cached items that are dependent on that object.
Public methodStatic memberInvalidate(String)
Invalidates a cache dependency given as String, i.e. removes all cache items that are dependent on this dependency key.
Public methodStatic memberInvalidate(ICacheDependency)
Invalidates a cache dependency given as an ICacheDependency, i.e. removes all cache items that are dependent on this dependency.
Public methodStatic memberInvalidate<TReturn, TParam1>(Func<TParam1, TReturn>, TParam1)
Removes a method call result from the cache giving the delegate of the method. This overload is for methods with 1 parameter.
Public methodStatic memberInvalidate<TReturn, TParam1, TParam2>(Func<TParam1, TParam2, TReturn>, TParam1, TParam2)
Removes a method call result from the cache giving the delegate of the method. This overload is for methods with 2 parameters.
Public methodStatic memberInvalidate(MethodInfo, Object, Object[])
Removes a method call result from the cache giving the MethodInfo representing the method, the instance and the arguments of the method call.
Public methodStatic memberInvalidate<TReturn, TParam1, TParam2, TParam3>(Func<TParam1, TParam2, TParam3, TReturn>, TParam1, TParam2, TParam3)
Removes a method call result from the cache giving the delegate of the method. This overload is for methods with 3 parameters.
Public methodStatic memberInvalidate<TReturn, TParam1, TParam2, TParam3, TParam4>(Func<TParam1, TParam2, TParam3, TParam4, TReturn>, TParam1, TParam2, TParam3, TParam4)
Removes a method call result from the cache giving the delegate of the method. This overload is for methods with 4 parameters.
Public methodStatic memberInvalidate<TReturn, TParam1, TParam2, TParam3, TParam4, TParam5>(Func<TParam1, TParam2, TParam3, TParam4, TParam5, TReturn>, TParam1, TParam2, TParam3, TParam4, TParam5)
Removes a method call result from the cache giving the delegate of the method. This overload is for methods with 5 parameters.
Public methodStatic memberInvalidate<TReturn, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6>(Func<TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TReturn>, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6)
Removes a method call result from the cache giving the delegate of the method. This overload is for methods with 6 parameters.
Public methodStatic memberInvalidate<TReturn, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7>(Func<TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TReturn>, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7)
Removes a method call result from the cache giving the delegate of the method. This overload is for methods with 7 parameters.
Public methodStatic memberInvalidate<TReturn, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8>(Func<TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TReturn>, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8)
Removes a method call result from the cache giving the delegate of the method. This overload is for methods with 8 parameters.
Public methodStatic memberInvalidate<TReturn, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9>(Func<TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TReturn>, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9)
Removes a method call result from the cache giving the delegate of the method. This overload is for methods with 9 parameters.
Public methodStatic memberInvalidate<TReturn, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10>(Func<TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, TReturn>, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10)
Removes a method call result from the cache giving the delegate of the method. This overload is for methods with 10 parameters.
See Also