Puts a new value into an entry in this region with the specified key in the local cache only.

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

Syntax

C#
public void LocalPut(
	CacheableKey key,
	IGFSerializable value
)
Visual Basic (Declaration)
Public Sub LocalPut ( _
	key As CacheableKey, _
	value As IGFSerializable _
)
Visual C++
public:
void LocalPut (
	CacheableKey^ key, 
	IGFSerializable^ value
)

Parameters

key
CacheableKey
a key object associated with the value to be put into this region.
value
IGFSerializable
the value to be put into this region

Remarks

If there is already an entry associated with the specified key in this region, the entry's previous value is overwritten.

Updates the LastAccessedTime and LastModifiedTime for this region and the entry.

Exceptions

ExceptionCondition
GemStone.GemFire.Cache..::IllegalArgumentException if key is null
GemStone.GemFire.Cache..::CacheWriterException if CacheWriter aborts the operation
GemStone.GemFire.Cache..::CacheListenerException if CacheListener throws an exception
GemStone.GemFire.Cache..::RegionDestroyedException if region has been destroyed
GemStone.GemFire.Cache..::OutOfMemoryException if there is not enough memory for the value

See Also