lib/aerospike/client.rb
def add(key, bins, options = nil)
      policy = create_policy(options, WritePolicy, default_write_policy)
      command = WriteCommand.new(@cluster, policy, key, hash_to_bins(bins), Aerospike::Operation::ADD)
      execute_command(command)
    end
def add(key, bins, options = nil)
      policy = create_policy(options, WritePolicy, default_write_policy)
      command = WriteCommand.new(@cluster, policy, key, hash_to_bins(bins), Aerospike::Operation::ADD)
      execute_command(command)
    end
-------------------------------------------------------
 Arithmetic Operations
-------------------------------------------------------

  Adds integer bin values to existing record bin values.
  The policy specifies the transaction timeout, record expiration and
  how the transaction is handled when the record already exists.

  This call only works for integer values.

  If no policy options are provided, +@default_write_policy+ will be used.
  Examples:

  client.add key, {'bin', -1}, :timeout => 0.001