class Renoir::Pipeline

Attributes

commands[R]

Public Class Methods

new(options={}) click to toggle source
# File lib/renoir/pipeline.rb, line 5
def initialize(options={})
  @commands = []
end

Public Instance Methods

call(*command) click to toggle source

Store a command for pipelining.

@param [Array] a Redis command passed to a connection backend

# File lib/renoir/pipeline.rb, line 17
def call(*command)
  @commands << command
end
eval(*args) click to toggle source

Delegated to {#call}.

# File lib/renoir/pipeline.rb, line 10
def eval(*args)
  call(:eval, *args)
end
method_missing(command, *args, &block) click to toggle source

Delegated to {#call}.

# File lib/renoir/pipeline.rb, line 22
def method_missing(command, *args, &block)
  call(command, *args, &block)
end