I would like to do upserts to Couchbase (version 6.5.1 build 6299) with locking. The problem is that the documentation of couchbase its selve seems incomplete.
The problem is that I can lock the file, and unlock but I don' t find how to use the Cas when upserting. As the documentation states (https://docs.couchbase.com/dotnet-sdk/3.0/howtos/kv-operations.html) I should to it as followed:
var result = await collection.InsertAsync("document-key", document,
options =>
{
options.WithCas(12345);
options.WithTimeout(TimeSpan.FromSeconds(5));
}
);
When I tried this, I got the following error: "UpsertOptions does not contain a definition for WithCas"
Does anyone have any idea how I should manage?