CacheExtensions FetchThrough TKey, TResult  Method NFX Class Library

[This is preliminary documentation and is subject to change.]

Fetches an item through cache

Namespace: NFX.ApplicationModel.Pile
Assembly: NFX (in NFX.dll) Version: 3.0.0.1 (3.0.0.1)
Syntax

public static TResult FetchThrough<TKey, TResult>(
	this ICache cache,
	TKey key,
	string tblCache,
	ICacheParams caching,
	Func<TKey, TResult> fFetch,
	Func<TKey, TResult, TResult> fFilter = null
)
where TResult : class

Parameters

cache
Type: NFX.ApplicationModel.Pile ICache
key
Type: TKey
tblCache
Type: OnlineSystem String
caching
Type: NFX.DataAccess.CRUD ICacheParams
fFetch
Type: OnlineSystem Func TKey, TResult 
fFilter (Optional)
Type: OnlineSystem Func TKey, TResult, TResult 
Type Parameters

TKey
TResult

Return Value

Type: TResult

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type ICache. When you use instance method syntax to call this method, omit the first parameter. For more information, see OnlineExtension Methods (Visual Basic) or OnlineExtension Methods (C# Programming Guide).
See Also