Module: Rafka::GenericCommands

Included in:
Consumer, Producer
Defined in:
lib/rafka/generic_commands.rb

Overview

Commands available on both Producer and Consumer.

Instance Method Summary collapse

Instance Method Details

#closeObject

Closes the connection.



12
13
14
# File 'lib/rafka/generic_commands.rb', line 12

def close
  @redis.quit
end

#pingObject



5
6
7
# File 'lib/rafka/generic_commands.rb', line 5

def ping
  @redis.ping
end