Copyright © Cloud Software Group, Inc. All Rights Reserved |
tibas_status tibasSpace_CompareAndPutEx(
Provide a tibasPutOptions structure that specifies the options for the put.Use the tibasSpace_CompareAndPutEx() function to compare the value in a specified tuple with the value in the data store, and if the value is unmodified, replace the existing tuple with the specified value.tibasSpace_CompareAndPutEx() also allows you to specify additional options for the operation, by passing a tibasPutOptions structure in the options parameter. The tibasPutOptions structure is defined as follows:
• entryTTL Allows you to define the entry TTL for the tuple that is being put.
• lockWait Specifies a lock wait time, in milliseconds.
• lock Put the data and lock the tuple.
• unlock Unlock the tuple. Only the thread or process that locked the tuple can unlock it.
• forget Specify this option if you want the system to forget the return. This is useful if you do not need the tuple.
Copyright © Cloud Software Group, Inc. All Rights Reserved |