Class: EventMachine::Hiredis::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/em-synchrony/em-hiredis.rb

Instance Method Summary collapse

Instance Method Details

#pubsubObject


17
18
19
20
21
22
23
# File 'lib/em-synchrony/em-hiredis.rb', line 17

def pubsub
  return @pubsub if @pubsub

  client = PubsubClient.new(@host, @port, @password, @db)
  EM::Synchrony.sync client.connect
  @pubsub = client
end