class Redic::Dsl

Public Instance Methods

method_missing(name, *arguments, &block) click to toggle source
# File lib/redic/dsl.rb, line 24
def method_missing name, *arguments, &block
  command = name.to_s
  response = call command, *arguments

  unless response.is_a? RuntimeError
    self.class.send(:define_method, name) do |*args|
      call command, *args
    end
  end

  response
end
pipelined() { |queue| ... } click to toggle source
# File lib/redic/dsl.rb, line 37
def pipelined(&block)
  yield Redic::Dsl::Queue.new(self)
  commit
end