Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 10th, 2012  |  syntax: None  |  size: 0.17 KB  |  hits: 16  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. config['mongo'] = EventMachine::Synchrony::ConnectionPool.new(size: 20) do
  2.   conn = EM::Mongo::Connection.new('localhost', 27017, 1, {:reconnect_in => 1})
  3.   conn.db('muisco')
  4. end