Method: Couchbase::Protostellar::BinaryCollection#increment

Defined in:
lib/couchbase/protostellar/binary_collection.rb

#increment(id, options = Options::Increment::DEFAULT) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



42
43
44
45
46
# File 'lib/couchbase/protostellar/binary_collection.rb', line 42

def increment(id, options = Options::Increment::DEFAULT)
  req = @kv_request_generator.increment_request(id, options)
  resp = @client.send_request(req)
  ResponseConverter::KV.to_counter_result(resp)
end