Class: EventMachine::Hiredis::Client
- Inherits:
-
Object
- Object
- EventMachine::Hiredis::Client
- Defined in:
- lib/em-synchrony/em-hiredis.rb
Instance Method Summary collapse
Instance Method Details
#pubsub ⇒ Object
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 |