Uploaded image for project: 'Couchbase .NET client library'
  1. Couchbase .NET client library
  2. NCBC-774

Ensure .NET SDK CAS behaviour is consistent with Java SDK 2.0

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Major
    • 2.0.2
    • 2.0.0
    • docs, library
    • None

    Description

      This is a reminder to follow up and confirm that the CAS behavior with the .NET SDK 2 and Java SDK 2 are consistent. This is motivated by the following email thread:

      Hi Tony,

      actually, cas is now baked into the ops and much, much smarter.

      Here are the big differences:

      • Now need for a separate “gets” op. Every get op fetches the cas into the returned Document.
      • The “replace” command automatically uses the cas when it’s found on the Document. Insert and upsert don’t use it.
      • If replace with cas suceeds all is good, if not the (documented in the api docs) throws exceptions or errors the observable (CASMismatchException).

      Cheers,
      Michael

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            jmorris Jeff Morris
            jmorris Jeff Morris
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty