Loads a value. Application writers should implement this method to customize the loading of a value.

Namespace: GemStone.GemFire.Cache
Assembly:  GemStone.GemFire.Cache (in GemStone.GemFire.Cache.dll)
Version: 2.5.0.1

Syntax

C#
IGFSerializable Load(
	Region region,
	ICacheableKey key,
	IGFSerializable helper
)
Visual Basic (Declaration)
Function Load ( _
	region As Region, _
	key As ICacheableKey, _
	helper As IGFSerializable _
) As IGFSerializable
Visual C++
IGFSerializable^ Load (
	Region^ region, 
	ICacheableKey^ key, 
	IGFSerializable^ helper
)

Parameters

region
Region
a Region for which this is called.
key
ICacheableKey
the key for the cacheable
helper
IGFSerializable
the value to be loaded and provides access to the key, region, argument, and NetSearch.

Return Value

the value supplied for this key, or null if no value can be supplied. If this load is invoked as part of a NetSearch, returning null will cause GemFire to invoke the next loader it finds in the system (if there is one). 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