A data-loading application plug-in that can be installed on a region.

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

Syntax

C#
public interface ICacheLoader
Visual Basic (Declaration)
Public Interface ICacheLoader
Visual C++
public interface class ICacheLoader

Remarks

Loaders facilitate loading of data into the cache from a third-party data source. When an application does a lookup for a key in a region and it does not exist, GemFire checks to see if any loaders are available for the region in the system and invokes them to get the value for the key into the cache.

A cache loader is defined in the RegionAttributes.

When Get(ICacheableKey, IGFSerializable) is called for a region entry that has a null value, the Load(Region, ICacheableKey, IGFSerializable) method of the region's cache loader is invoked. The Load method creates the value for the desired key by performing an operation such as a database query. The Load may also perform a NetSearch that looks for the value in a cache instance hosted by another member of the distributed system.

See Also