class EventMachine::Hiredis::Client

Public Instance Methods

pubsub() click to toggle source
# 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