Click or drag to resize

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
)

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: IQdbFutureByte
A future that will contain the result of the operation after the batch is run.
See Also