IGridMapPessimisticTx TKey, TValue  Add Method IBM WebSphere™ eXtreme Scale Client for .NET API Specification
IBM WebSphere™ eXtreme Scale Client for .NET Release 8.6.0.0 API Specification

Adds the key-value pair to the data grid.

The key must not exist before you run this method.

A DuplicateKeyException exception results when the duplicate key is discovered. Duplicate keys might be discovered with a flush or commit operation. In this scenario, the exception is an inner exception.

Namespace: IBM.WebSphere.Caching.Map
Assembly: Client.Api (in Client.Api.dll) Version: 8.6.0.0
Syntax

Parameters

key
Type: TKey
Specifies the key to be inserted in the data grid.
value
Type: TValue
Specifies the value to be inserted in the data grid.

Return Value

Exceptions

ExceptionCondition
System ArgumentException Occurs when a nullkey is specified.
IBM.WebSphere.Caching.Map DuplicateKeyException Occurs when the key exists.
IBM.WebSphere.Caching GridException Occurs when an error occurs during processing.
IBM.WebSphere.Caching.Security AccessControlException Occurs when the caller has insufficient authority to perform this operation.
Remarks

Specification details:
Required client permission:MapPermission.INSERT
Cache tier:Applied to all tiers during commit.
See Also