Method: Aerospike::CDT::ListOperation.remove_by_index_range

Defined in:
lib/aerospike/cdt/list_operation.rb

.remove_by_index_range(bin_name, index, count = nil, ctx: nil, return_type: ListReturnType::NONE) ⇒ Object

Create list remove by index range operation.

Server removes list item identified by index range

Server returns selected data specified by return_type.

[View source]

389
390
391
392
393
394
395
# File 'lib/aerospike/cdt/list_operation.rb', line 389

def self.remove_by_index_range(bin_name, index, count=nil, ctx: nil, return_type: ListReturnType::NONE)
  if count
    InvertibleListOp.new(Operation::CDT_MODIFY, REMOVE_BY_INDEX_RANGE, bin_name, index, count, ctx: ctx, return_type: return_type)
  else
    InvertibleListOp.new(Operation::CDT_MODIFY, REMOVE_BY_INDEX_RANGE, bin_name, index, ctx: ctx, return_type: return_type)
  end
end