| QdbBatchBlobCompareAndSwap Method |
Adds a "compareAndSwap" operation to the batch: "Atomically compares the content of the blob and replaces it, if it matches."
Namespace:
Quasardb
Assembly:
Quasardb (in Quasardb.dll) Version: 3.15.0.0 (3.15.0.0)
Syntax public IQdbFuture<byte[]> CompareAndSwap(
byte[] newContent,
byte[] comparand,
DateTime? expiryTime = null
)
Public Function CompareAndSwap (
newContent As Byte(),
comparand As Byte(),
Optional expiryTime As DateTime? = Nothing
) As IQdbFuture(Of Byte())
Parameters
- newContent
- Type: SystemByte
The content to be updated to the server, in case of match. - comparand
- Type: SystemByte
The content to be compared to. - expiryTime (Optional)
- Type: SystemNullableDateTime
The new expiry time of the blob, in case of match.
Return Value
Type:
IQdbFutureByteA future that will contain the result of the operation after the batch is run.
See Also