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

MemchacheBucket Upsert method doesn't consider the expiration Timespan

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.5.0
    • 2.5.2
    • library
    • None

    Description

      This method

      public IOperationResult<T> Upsert<T>(string key, T value, TimeSpan expiration)
      {
      return this.Upsert<T>(key, value, expiration.ToTtl(), this.GlobalTimeout);
      }

      use the following method

      public IOperationResult<T> Upsert<T>(string key, T value, uint expiration, TimeSpan timeout)
      {
      return this._requestExecuter.SendWithRetry<T>((IOperation<T>) new Set<T>(key, value, (IVBucket) null, this._transcoder, timeout.GetSeconds()));
      }

      expiration param isn't considered. This cause the object to have infinite duration.

       

       

      Attachments

        Issue Links

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

          Activity

            There are no comments yet on this issue.

            People

              jmorris Jeff Morris
              stefano.limonta Stefano Limonta
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty