Searches other caches for the value to be loaded.

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

Syntax

C#
public static IGFSerializable NetSearch(
	Region region,
	CacheableKey key,
	bool netLoad,
	IGFSerializable cacheLoaderArg
)
Visual Basic (Declaration)
Public Shared Function NetSearch ( _
	region As Region, _
	key As CacheableKey, _
	netLoad As Boolean, _
	cacheLoaderArg As IGFSerializable _
) As IGFSerializable
Visual C++
public:
static IGFSerializable^ NetSearch (
	Region^ region, 
	CacheableKey^ key, 
	bool netLoad, 
	IGFSerializable^ cacheLoaderArg
)

Parameters

region
Region
the region to do the net search on
key
CacheableKey
the key to do the net search for
netLoad
Boolean
if true, and there is no valid value found for this entry in the local system, then look for and invoke loaders on other nodes.
cacheLoaderArg
IGFSerializable
passed to netloader if not null, and if there is no valid value found for this entry in the local system, then look for and invoke loaders on other nodes

Return Value

The value found by the net search operation, or NULL if nothing was found.

Remarks

If the cache is part of a distributed caching system, NetSearch will try to locate the requested value in any other cache within the system. If the search is successful, a reference to a local copy of the value is returned. If there is no value for this entry locally, and doNetLoad is true, GemFire looks for and invokes CacheLoaders in other nodes in the system. The net load will invoke one loader at a time until a loader either returns a non-null value or throws an exception. If the object is not found, NULL is returned.

See Also