Sha256: 065f2ac50c2c1e4dc4f56dcfa0039894d5d7acc2f45924c3bed506f22512d1b6

Contents?: true

Size: 175 Bytes

Versions: 4

Compression:

Stored size: 175 Bytes

Contents

module ConnectionHelper
  def connect(url = nil, &blk)
    em do
      redis = EventMachine::Hiredis.connect(url)
      redis.flushall
      blk.call(redis)
    end
  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
em-hiredis-0.1.1 spec/support/connection_helper.rb
rstatsd-0.3 spec/support/connection_helper.rb
rstatsd-0.2 spec/support/connection_helper.rb
em-hiredis-0.1.0 spec/support/connection_helper.rb