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)
IGFSerializable Load( Region region, ICacheableKey key, IGFSerializable helper )
|Visual Basic (Declaration)|
Function Load ( _ region As Region, _ key As ICacheableKey, _ helper As IGFSerializable _ ) As IGFSerializable
IGFSerializable^ Load ( Region^ region, ICacheableKey^ key, IGFSerializable^ helper )
a Region for which this is called.
the key for the cacheable
the value to be loaded and provides access to the key, region, argument, and NetSearch.
Return Valuethe 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.
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.