Skip to content

Instantly share code, notes, and snippets.

@yankov
Created April 25, 2012 03:20
Show Gist options
  • Star 8 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save yankov/2485964 to your computer and use it in GitHub Desktop.
Save yankov/2485964 to your computer and use it in GitHub Desktop.
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")
@fertobar
Copy link

there is any way to set read_timeout and *connect_timeout options ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment