ICacheLoader TKey, TValue  Load Method Pivotal 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:

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


Type: GemStone.GemFire.Cache.Generic IRegion TKey, TValue 
a Region for which this is called.
Type: TKey
the key for the cacheable
Type: System 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.

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