Click or drag to resize
RegionLocalCreate Method (ICacheableKey, Serializable, IGFSerializable)
Creates a new entry in this region with the specified key and value in the local cache only, passing the callback argument to any cache writers and cache listeners that are invoked in the operation.

Namespace: GemStone.GemFire.Cache
Assembly: Gemstone.Gemfire.Cache (in Gemstone.Gemfire.Cache.dll) Version: 9.0.6.18
Syntax
public void LocalCreate(
	ICacheableKey key,
	Serializable value,
	IGFSerializable callbackArg
)

Parameters

key
Type: GemStone.GemFire.CacheICacheableKey
the key object for which to create the entry in this region.
value
Type: GemStone.GemFire.CacheSerializable
the value to be created in this region
callbackArg
Type: GemStone.GemFire.CacheIGFSerializable
argument that is passed to the callback functions
Exceptions
ExceptionCondition
IllegalArgumentException if key is null
EntryExistsException if an entry with this key already exists
CacheWriterException if CacheWriter aborts the operation
CacheListenerException if CacheListener throws an exception
RegionDestroyedException if region has been destroyed
OutOfMemoryException if there is not enough memory for the value
Remarks

If there is already an entry associated with the specified key in this region, then an EntryExistsException is thrown.

Updates the [!:CacheStatistics.LastAccessedTime] and [!:CacheStatistics.LastModifiedTime] for this region and the entry.

See Also