Class: Aerospike::SingleCommand

Inherits:
Command
  • Object
show all
Defined in:
lib/aerospike/command/single_command.rb

Overview

:nodoc:

Instance Method Summary collapse

Methods inherited from Command

#execute, #set_batch_exists, #set_batch_get, #set_delete, #set_exists, #set_operate, #set_read, #set_read_for_key_only, #set_read_header, #set_scan, #set_touch, #set_udf, #set_write

Constructor Details

#initialize(cluster, key) ⇒ SingleCommand

Returns a new instance of SingleCommand.



26
27
28
29
30
31
32
33
34
# File 'lib/aerospike/command/single_command.rb', line 26

def initialize(cluster, key)
  @cluster = cluster
  @key = key
  @partition = Partition.new_by_key(key)

  super(@cluster.get_node(@partition))

  self
end