[This is preliminary documentation and is subject to change.]
Fetches an existing item from cache or null. IsAbsent is true when data was read from cache as an AbsentValue
Namespace: NFX.ApplicationModel.PileAssembly: NFX (in NFX.dll) Version: 3.0.0.1 (3.0.0.1)
public static TResult FetchFrom<TKey, TResult>(
this ICache cache,
TKey key,
string tblCache,
ICacheParams caching,
out bool isAbsent
)
where TResult : class
public static TResult FetchFrom<TKey, TResult>(
this ICache cache,
TKey key,
string tblCache,
ICacheParams caching,
out bool isAbsent
)
where TResult : class
<ExtensionAttribute>
Public Shared Function FetchFrom(Of TKey, TResult As Class) (
cache As ICache,
key As TKey,
tblCache As String,
caching As ICacheParams,
<OutAttribute> ByRef isAbsent As Boolean
) As TResult
<ExtensionAttribute>
Public Shared Function FetchFrom(Of TKey, TResult As Class) (
cache As ICache,
key As TKey,
tblCache As String,
caching As ICacheParams,
<OutAttribute> ByRef isAbsent As Boolean
) As TResult
public:
[ExtensionAttribute]
generic<typename TKey, typename TResult>
where TResult : ref class
static TResult FetchFrom(
ICache^ cache,
TKey key,
String^ tblCache,
ICacheParams^ caching,
[OutAttribute] bool% isAbsent
)
public:
[ExtensionAttribute]
generic<typename TKey, typename TResult>
where TResult : ref class
static TResult FetchFrom(
ICache^ cache,
TKey key,
String^ tblCache,
ICacheParams^ caching,
[OutAttribute] bool% isAbsent
)
static member FetchFrom :
cache : ICache *
key : 'TKey *
tblCache : string *
caching : ICacheParams *
isAbsent : bool byref -> 'TResult when 'TResult : not struct
static member FetchFrom :
cache : ICache *
key : 'TKey *
tblCache : string *
caching : ICacheParams *
isAbsent : bool byref -> 'TResult when 'TResult : not struct
- TKey
- TResult
Return Value
Type:
TResultUsage 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
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).