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

Feedback on Data Operations | Couchbase Docs

    XMLWordPrintable

Details

    Description

      "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."

      The wording here is misleading to customers. The value is strictly a duration (in seconds). [ If a timestamp is passed, the SDK will add now() in seconds to it, resulting in the expiring being set to the timestamp plus roughly 54 years.  The SDK adds now() (i.e. converts it from a duration to a timestamp), because the server treats anything over 30 days as a timestamp]

      https://issues.couchbase.com/browse/CBSE-17666
      https://issues.couchbase.com/browse/CBSE-17780

      Browser environment: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36

      Michael Reiche 

      Attachments

        Issue Links

          Activity

            People

              richard.smedley Richard Smedley
              docsite-collector Docs Site Collector
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                PagerDuty