'Declaration Public Overloads Function Get(Of T)( _ ByVal key As System.String, _ ByVal serviceFunction As System.Func(Of Dictionary(Of String,Object),T), _ ByVal serviceParms As System.Collections.Generic.Dictionary(Of String,Object), _ Optional ByVal regionName As System.String _ ) As T
'Usage Dim instance As SmartCache Dim key As System.String Dim serviceFunction As System.Func(Of Dictionary(Of String,Object),T) Dim serviceParms As System.Collections.Generic.Dictionary(Of String,Object) Dim regionName As System.String Dim value As T value = instance.Get(Of T)(key, serviceFunction, serviceParms, regionName)
public T Get<T>( System.string key, System.Func<Dictionary<string,object>,T> serviceFunction, System.Collections.Generic.Dictionary<string,object> serviceParms, System.string regionName )
public: T* Get<T>( System.string* key, System.Func<Dictionary<string*,Object*>*,T*>* serviceFunction, System.Collections.Generic.Dictionary<string*,Object*>* serviceParms, System.string* regionName )
public: T^ Getgeneric<typename T> ( System.String^ key, System.Func<Dictionary<String^,Object^>^,T^>^ serviceFunction, System.Collections.Generic.Dictionary<String^,Object^>^ serviceParms, System.String^ regionName )
Parameters
- key
- The unique identifier for the cache item.
- serviceFunction
- The function to call if is not found in the cache.
- serviceParms
- The parameters to pass to the service function.
- regionName
- Optional. Name of the region. The default value is Default
Type Parameters
- T
Return Value
T.