ICacheLoader TKey, TValue  Load Method vFabric GemFire .NET Client Documentation
Loads a value. Application writers should implement this method to customize the loading of a value.

Namespace: GemStone.GemFire.Cache.Generic
Assembly: GemStone.GemFire.Cache (in GemStone.GemFire.Cache.dll) Version: 7.0.1.0
Syntax

TValue Load(
	IRegion<TKey, TValue> region,
	TKey key,
	Object callbackArgument
)

Parameters

region
Type: GemStone.GemFire.Cache.Generic IRegion TKey, TValue 
a Region for which this is called.
key
Type: TKey
the key for the cacheable
callbackArgument
Type: OnlineSystem Object

Return Value

the value supplied for this key, or null if no value can be supplied. If every available loader returns a null value, Get(ICacheableKey, IGFSerializable) will return null.
Remarks

This method is called by the caching service when the requested value is not in the cache. Any exception thrown by this method is propagated back to and thrown by the invocation of Get(ICacheableKey, IGFSerializable) that triggered this load.
See Also