Module: EventMachine::Hiredis

Defined in:
lib/em-synchrony/em-hiredis.rb

Defined Under Namespace

Classes: Client

Class Method Summary collapse

Class Method Details

.connect(uri = nil) ⇒ Object


10
11
12
13
14
# File 'lib/em-synchrony/em-hiredis.rb', line 10

def self.connect(uri = nil)
  client = setup(uri)
  EM::Synchrony.sync client.connect
  client
end