Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Caching Namespace / Caching­Services.​Invalidation Class

CachingServices.Invalidation Class

Invalidates the cache.
Invalidates the cache.
Inheritance Hierarchy
System.Object
  PostSharp.Patterns.Caching.CachingServices.Invalidation

Namespace:  PostSharp.Patterns.Caching
Assembly:  PostSharp.Patterns.Caching (in PostSharp.Patterns.Caching.dll) Version: 5.0.38.0 (5.0.38.0)
Syntax
C#
public static class Invalidation
Methods
  NameDescription
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(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>(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<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.
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<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 memberInvalidateAsync(Object)
Asynchronously invalidates a cache dependency given an Object, i.e. removes all cached items that are dependent on that object.
Public methodStatic memberInvalidateAsync(String)
Asynchronously invalidates a cache dependency given as String, i.e. removes all cache items that are dependent on this dependency key.
Public methodStatic memberInvalidateAsync(ICacheDependency)
Asynchronously invalidates a cache dependency given as an ICacheDependency, i.e. removes all cache items that are dependent on this dependency.
Public methodStatic memberInvalidateAsync(MethodInfo, Object, Object[])
Asynchronously 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 memberInvalidateAsync<TReturn>(Func<TReturn>)
Asynchronously removes a method call result from the cache giving the delegate of the method. This overload is for methods with 0 parameter.
Public methodStatic memberInvalidateAsync<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)
Asynchronously removes a method call result from the cache giving the delegate of the method. This overload is for methods with 9 parameters.
Public methodStatic memberInvalidateAsync<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)
Asynchronously removes a method call result from the cache giving the delegate of the method. This overload is for methods with 10 parameters.
Public methodStatic memberInvalidateAsync<TReturn, TParam1>(Func<TParam1, TReturn>, TParam1)
Asynchronously removes a method call result from the cache giving the delegate of the method. This overload is for methods with 1 parameter.
Public methodStatic memberInvalidateAsync<TReturn, TParam1, TParam2>(Func<TParam1, TParam2, TReturn>, TParam1, TParam2)
Asynchronously removes a method call result from the cache giving the delegate of the method. This overload is for methods with 2 parameters.
Public methodStatic memberInvalidateAsync<TReturn, TParam1, TParam2, TParam3>(Func<TParam1, TParam2, TParam3, TReturn>, TParam1, TParam2, TParam3)
Asynchronously removes a method call result from the cache giving the delegate of the method. This overload is for methods with 3 parameters.
Public methodStatic memberInvalidateAsync<TReturn, TParam1, TParam2, TParam3, TParam4>(Func<TParam1, TParam2, TParam3, TParam4, TReturn>, TParam1, TParam2, TParam3, TParam4)
Asynchronously removes a method call result from the cache giving the delegate of the method. This overload is for methods with 4 parameters.
Public methodStatic memberInvalidateAsync<TReturn, TParam1, TParam2, TParam3, TParam4, TParam5>(Func<TParam1, TParam2, TParam3, TParam4, TParam5, TReturn>, TParam1, TParam2, TParam3, TParam4, TParam5)
Asynchronously removes a method call result from the cache giving the delegate of the method. This overload is for methods with 5 parameters.
Public methodStatic memberInvalidateAsync<TReturn, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6>(Func<TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TReturn>, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6)
Asynchronously removes a method call result from the cache giving the delegate of the method. This overload is for methods with 6 parameters.
Public methodStatic memberInvalidateAsync<TReturn, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7>(Func<TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TReturn>, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7)
Asynchronously removes a method call result from the cache giving the delegate of the method. This overload is for methods with 7 parameters.
Public methodStatic memberInvalidateAsync<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)
Asynchronously removes a method call result from the cache giving the delegate of the method. This overload is for methods with 8 parameters.
Public methodStatic memberRecache<TReturn>(Func<TReturn>)
Evaluates a method, ignoring the currently cached value, and replaces the corresponding cache item with the new return value of the method. This overload is for methods with 0 parameter.
Public methodStatic memberRecache<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)
Evaluates a method, ignoring the currently cached value, and replaces the corresponding cache item with the new return value of the method. This overload is for methods with 9 parameters.
Public methodStatic memberRecache<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)
Evaluates a method, ignoring the currently cached value, and replaces the corresponding cache item with the new return value of the method. This overload is for methods with 10 parameters.
Public methodStatic memberRecache<TReturn, TParam1>(Func<TParam1, TReturn>, TParam1)
Evaluates a method, ignoring the currently cached value, and replaces the corresponding cache item with the new return value of the method. This overload is for methods with 1 parameter.
Public methodStatic memberRecache<TReturn, TParam1, TParam2>(Func<TParam1, TParam2, TReturn>, TParam1, TParam2)
Evaluates a method, ignoring the currently cached value, and replaces the corresponding cache item with the new return value of the method. This overload is for methods with 2 parameters.
Public methodStatic memberRecache<TReturn, TParam1, TParam2, TParam3>(Func<TParam1, TParam2, TParam3, TReturn>, TParam1, TParam2, TParam3)
Evaluates a method, ignoring the currently cached value, and replaces the corresponding cache item with the new return value of the method. This overload is for methods with 3 parameters.
Public methodStatic memberRecache<TReturn, TParam1, TParam2, TParam3, TParam4>(Func<TParam1, TParam2, TParam3, TParam4, TReturn>, TParam1, TParam2, TParam3, TParam4)
Evaluates a method, ignoring the currently cached value, and replaces the corresponding cache item with the new return value of the method. This overload is for methods with 4 parameters.
Public methodStatic memberRecache<TReturn, TParam1, TParam2, TParam3, TParam4, TParam5>(Func<TParam1, TParam2, TParam3, TParam4, TParam5, TReturn>, TParam1, TParam2, TParam3, TParam4, TParam5)
Evaluates a method, ignoring the currently cached value, and replaces the corresponding cache item with the new return value of the method. This overload is for methods with 5 parameters.
Public methodStatic memberRecache<TReturn, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6>(Func<TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TReturn>, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6)
Evaluates a method, ignoring the currently cached value, and replaces the corresponding cache item with the new return value of the method. This overload is for methods with 6 parameters.
Public methodStatic memberRecache<TReturn, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7>(Func<TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TReturn>, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7)
Evaluates a method, ignoring the currently cached value, and replaces the corresponding cache item with the new return value of the method. This overload is for methods with 7 parameters.
Public methodStatic memberRecache<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)
Evaluates a method, ignoring the currently cached value, and replaces the corresponding cache item with the new return value of the method. This overload is for methods with 8 parameters.
Public methodStatic memberRecacheAsync<TReturn>(Func<Task<TReturn>>)
Asynchronously evaluates a method, ignoring the currently cached value, and replaces the corresponding cache item with the new return value of the method. This overload is for methods with 0 parameter.
Public methodStatic memberRecacheAsync<TReturn, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9>(Func<TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, Task<TReturn>>, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9)
Asynchronously evaluates a method, ignoring the currently cached value, and replaces the corresponding cache item with the new return value of the method. This overload is for methods with 9 parameters.
Public methodStatic memberRecacheAsync<TReturn, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10>(Func<TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10, Task<TReturn>>, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, TParam9, TParam10)
Asynchronously evaluates a method, ignoring the currently cached value, and replaces the corresponding cache item with the new return value of the method. This overload is for methods with 10 parameters.
Public methodStatic memberRecacheAsync<TReturn, TParam1>(Func<TParam1, Task<TReturn>>, TParam1)
Asynchronously evaluates a method, ignoring the currently cached value, and replaces the corresponding cache item with the new return value of the method. This overload is for methods with 1 parameter.
Public methodStatic memberRecacheAsync<TReturn, TParam1, TParam2>(Func<TParam1, TParam2, Task<TReturn>>, TParam1, TParam2)
Asynchronously evaluates a method, ignoring the currently cached value, and replaces the corresponding cache item with the new return value of the method. This overload is for methods with 2 parameters.
Public methodStatic memberRecacheAsync<TReturn, TParam1, TParam2, TParam3>(Func<TParam1, TParam2, TParam3, Task<TReturn>>, TParam1, TParam2, TParam3)
Asynchronously evaluates a method, ignoring the currently cached value, and replaces the corresponding cache item with the new return value of the method. This overload is for methods with 3 parameters.
Public methodStatic memberRecacheAsync<TReturn, TParam1, TParam2, TParam3, TParam4>(Func<TParam1, TParam2, TParam3, TParam4, Task<TReturn>>, TParam1, TParam2, TParam3, TParam4)
Asynchronously evaluates a method, ignoring the currently cached value, and replaces the corresponding cache item with the new return value of the method. This overload is for methods with 4 parameters.
Public methodStatic memberRecacheAsync<TReturn, TParam1, TParam2, TParam3, TParam4, TParam5>(Func<TParam1, TParam2, TParam3, TParam4, TParam5, Task<TReturn>>, TParam1, TParam2, TParam3, TParam4, TParam5)
Asynchronously evaluates a method, ignoring the currently cached value, and replaces the corresponding cache item with the new return value of the method. This overload is for methods with 5 parameters.
Public methodStatic memberRecacheAsync<TReturn, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6>(Func<TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, Task<TReturn>>, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6)
Asynchronously evaluates a method, ignoring the currently cached value, and replaces the corresponding cache item with the new return value of the method. This overload is for methods with 6 parameters.
Public methodStatic memberRecacheAsync<TReturn, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7>(Func<TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, Task<TReturn>>, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7)
Asynchronously evaluates a method, ignoring the currently cached value, and replaces the corresponding cache item with the new return value of the method. This overload is for methods with 7 parameters.
Public methodStatic memberRecacheAsync<TReturn, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8>(Func<TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8, Task<TReturn>>, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, TParam7, TParam8)
Asynchronously evaluates a method, ignoring the currently cached value, and replaces the corresponding cache item with the new return value of the method. This overload is for methods with 8 parameters.
See Also