Uploaded image for project: 'Couchbase Documentation'
  1. Couchbase Documentation
  2. DOC-9622

Go SDK expiration note is incorrect

    XMLWordPrintable

Details

    Description

      The "Expiration / TTL" section of the "Key Value Operations" page of the Go SDK 2.x Docs says:

      If the absolute value of the expiry is less than 30 days (such as 60 * 60 * 24 * 30), it is considered an offset. If the value is greater, it is considered an absolute time stamp. For more on expiration see the expiration section of our documents discussion doc.

      This is not applicable to the Go SDK: all operations including expiries (including Touch and GetAndTouch) are passed to durationToExpiry, which appropriately converts to either a Unix timestamp or absolute number of seconds depending on the expiry value. cf. https://github.com/couchbase/gocb/blob/v2.3.5/collection_crud.go#L1296

      Reporter: Marks Polakovs
      E-mail: marks.polakovs@couchbase.com

      Attachments

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

        Activity

          People

            richard.smedley Richard Smedley
            marks.polakovs Marks Polakovs (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty