Uploaded image for project: 'Couchbase PHP client library'
  1. Couchbase PHP client library
  2. PCBC-637

get withExpiration does not return expiration

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 4.0.0
    • 3.0.0-alpha4
    • None
    • None
    • 1
    • SDK1: GA and Priority List

    Description

      Given the following code, expiration is always null.

       

      <?php
      $connectionString = "couchbase://localhost?fetch_mutation_tokens=1";$cluster = new \Couchbase\Cluster($connectionString);
      $cluster->authenticateAs("Administrator", "password");
      $bucket = $cluster->bucket("travel-sample");
      $collection = $bucket->defaultCollection();
      $opts = new \Couchbase\UpsertOptions();$upsertResult = $collection->upsert("foo", "bar", $opts->expiration(10));
      $options = new \Couchbase\GetOptions();$getResult = $collection->get("foo", $options->withExpiration(true));
      var_dump($getResult->expiration());
       

      Attachments

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

        Activity

          People

            avsej Sergey Avseyev
            daschl Michael Nitschinger
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty