Class | EventMachine::Hiredis::BaseClient |
In: |
lib/em-hiredis/base_client.rb
|
Parent: | Object |
Emits the following events
This event is passed number of failures so far (1,2,3...)
db | [R] | |
host | [R] | |
password | [R] | |
port | [R] |
Configure the redis connection to use
In usual operation, the uri should be passed to initialize. This method is useful for example when failing over to a slave connection at runtime
Starts an inactivity checker which will ping redis if nothing has been heard on the connection for `trigger_secs` seconds and forces a reconnect after a further `response_timeout` seconds if we still don‘t hear anything.
Indicates that commands have been sent to redis but a reply has not yet been received
This can be useful for example to avoid stopping the eventmachine reactor while there are outstanding commands
Note: This method doesn‘t disconnect if already connected. You probably want to use `reconnect!`