Creates a new entry in this region with the specified key and value
in the local cache only.
Namespace: GemStone.GemFire.Cache
Assembly: GemStone.GemFire.Cache (in GemStone.GemFire.Cache.dll)
Version: 2.7.0.1
Syntax
| C# |
|---|
public void LocalCreate( ICacheableKey key, Serializable value ) |
| Visual Basic (Declaration) |
|---|
Public Sub LocalCreate ( _ key As ICacheableKey, _ value As Serializable _ ) |
| Visual C++ |
|---|
public: void LocalCreate ( ICacheableKey^ key, Serializable^ value ) |
Parameters
- key
- ICacheableKey
the key object for which to create the entry in this region.
- value
- Serializable
the value to be created in this region
Remarks
If there is already an entry associated with the specified key in this region, then an EntryExistsException is thrown.
Updates the LastAccessedTime and LastModifiedTime for this region and the entry.
Exceptions
| Exception | Condition |
|---|---|
| GemStone.GemFire.Cache..::IllegalArgumentException | if key is null |
| GemStone.GemFire.Cache..::EntryExistsException | if an entry with this key already exists |
| 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 |