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
    • Resolution: Fixed
    • Major
    • 2.5.2
    • 2.5.0
    • 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

          For Gerrit Dashboard: NCBC-1538
          # Subject Branch Project Status CR V

          Activity

            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