Click or drag to resize

QdbBatchBlob.CompareAndSwap 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.9.9.0 (3.9.9.0)
Syntax
public IQdbFuture<byte[]> CompareAndSwap(
	byte[] newContent,
	byte[] comparand,
	Nullable<DateTime> expiryTime = null
)

Parameters

newContent
Type:System.Byte[]
The content to be updated to the server, in case of match.
comparand
Type:System.Byte[]
The content to be compared to.
expiryTime (Optional)
Type: System.Nullable<DateTime>
The new expiry time of the blob, in case of match.

Return Value

Type: IQdbFuture<Byte[]>
A future that will contain the result of the operation after the batch is run.
See Also