class Renoir::ConnectionAdapters::Base

Abstract class.

Public Class Methods

get_keys_from_command(command) click to toggle source

Return keys in a `command`.

@param [Array] command a command argument @return [Array<String>] keys

# File lib/renoir/connection_adapters/base.rb, line 10
def get_keys_from_command(command)
  fail "a connection adapter must override #get_keys_from_command"
end

Public Instance Methods

call(commands, asking=false, &block) click to toggle source

Call pipelined commands.

@param [Array<Array>] commands list of commands. @param [Boolean] asking Call ASKING command at first if `true` @yield [Object] a connection backend may yield

# File lib/renoir/connection_adapters/base.rb, line 20
def call(commands, asking=false, &block)
  fail "a connection adapter must override #call"
end
close() click to toggle source

Close a backend connection.

# File lib/renoir/connection_adapters/base.rb, line 25
def close
  fail "a connection adapter must override #close"
end
with_raw_connection() click to toggle source

Return a backend connection.

@return [Object] a backend connection instance

# File lib/renoir/connection_adapters/base.rb, line 32
def with_raw_connection
  fail "a connection adapter must override #with_raw_connection"
end