Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Simple RedisToGo connection
require 'rubygems'
require 'uri'
require 'redis'
uri = URI.parse('redis://username:password@host:1234/')
unless uri.nil?
p uri.host
p uri.port
p uri.password
p '---'
r = Redis.new(:host => uri.host, :port => uri.port, :password => uri.password, :thread_safe => true)
p r.info
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment