Skip to content

Commit

Permalink
Merge branch 'benpickles-master'
Browse files Browse the repository at this point in the history
  • Loading branch information
mloughran committed Mar 30, 2011
2 parents 6c73b40 + 8c05f4c commit bda197e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -3,11 +3,11 @@ Getting started

Connect to redis

redis_client = EM::Hiredis.connect
redis = EM::Hiredis::Client.connect

The client is a deferrable which succeeds when the underlying connection is established so you can bind to this. This isn't necessary however - any commands sent before the connection is established (or while reconnecting) will be sent to redis on connect.

redis_client.callback { puts "Redis now connected" }
redis.callback { puts "Redis now connected" }

All redis commands are available without any remapping of names

Expand Down

0 comments on commit bda197e

Please sign in to comment.