public static Task TouchAsync(this ICouchbaseCollection collection, string id, TimeSpan expiry,
                                      Action <TouchOptions> configureOptions)
        {
            var options = new TouchOptions();

            configureOptions(options);

            return(collection.TouchAsync(id, expiry, options));
        }
 public async Task TouchAsync(string id, TimeSpan expiry, TouchOptions options)
 {
     using (var touchOp = new Touch
     {
         Key = id,
         Cid = Cid,
         Expires = expiry.ToTtl(),
         DurabilityTimeout = TimeSpan.FromMilliseconds(1500),
         Transcoder = _transcoder
     })
     {
         await _bucket.SendAsync(touchOp, options.Token, options.Timeout).ConfigureAwait(false);
     }
 }