Created
April 25, 2012 03:20
-
-
Save yankov/2485964 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'redis' | |
require 'redis/distributed' | |
r = Redis::Distributed.new %w[redis://host1:6379 redis://host2:6379] | |
# show node for key "foo" | |
p r.node_for("foo") | |
# set the value of "foo" | |
r.set("foo", "value") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
there is any way to set read_timeout and *connect_timeout options ?