PostSharp6.3/API Reference/Post­Sharp.​Patterns.​Caching Namespace/Caching­Services.​Invalidation Class/Invalidation Methods/Invalidation.​Recache Method/Caching­Services.​Invalidation.​Recache(TReturn, TParam1, TParam2, TParam3) Method (Func(TParam1, TParam2, TParam3, TReturn), TParam1, TParam2, TParam3)

CachingServices.Invalidation.Recache<TReturn, TParam1, TParam2, TParam3> Method (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.

Namespace:  PostSharp.Patterns.Caching
Assembly:  PostSharp.Patterns.Caching (in PostSharp.Patterns.Caching.dll) Version: 6.3.11.0 (6.3.11.0)
Syntax
C#
public static TReturn Recache<TReturn, TParam1, TParam2, TParam3>(
	Func<TParam1, TParam2, TParam3, TReturn> method,
	TParam1 arg1,
	TParam2 arg2,
	TParam3 arg3
)

Parameters

method
Type: System.Func<TParam1, TParam2, TParam3, TReturn>
A delegate of the method to evaluate.
arg1
Type: TParam1
Value of the first parameter.
arg2
Type: TParam2
Value of the second parameter.
arg3
Type: TParam3
Value of the third parameter.

Type Parameters

TReturn
The return type of the method.
TParam1
Type of the first parameter.
TParam2
Type of the second parameter.
TParam3
Type of the third parameter.

Return Value

Type: TReturn
The return value of method.
See Also