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.7.0.0
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
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.