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

  Writes record bin(s).
  The policy options specifiy the transaction timeout, record expiration
  and how the transaction is handled when the record already exists.

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

  client.put key, {'bin', 'value string'}, :timeout => 0.001