lib/aerospike/client.rb
def operate(key, operations, options = nil)
      policy = create_policy(options, WritePolicy, default_write_policy)

      command = OperateCommand.new(@cluster, policy, key, operations)
      execute_command(command)
      command.record
    end
def operate(key, operations, options = nil)
      policy = create_policy(options, WritePolicy, default_write_policy)

      command = OperateCommand.new(@cluster, policy, key, operations)
      execute_command(command)
      command.record
    end
-------------------------------------------------------
 Generic Database Operations
-------------------------------------------------------
  Perform multiple read/write operations on a single key in one batch call.
  An example would be to add an integer value to an existing record and then
  read the result, all in one database call. Operations are executed in
  the order they are specified.