Class URI::Redis
In: lib/uri/redis.rb
Parent: URI::Generic

Methods

build   conf   db   db=   key   key=   new   request_uri   serverid  

Constants

VERSION = '0.4' unless defined?(URI::Redis::VERSION)
DEFAULT_PORT = 6379
DEFAULT_DB = 0

Public Class methods

Public Instance methods

Returns a hash suitable for sending to Redis.new. The hash is generated from the host, port, db and password from the URI as well as any query vars.

e.g.

     uri = URI.parse "redis://127.0.0.1/6/?timeout=5"
     uri.conf
       # => {:db=>6, :timeout=>"5", :host=>"127.0.0.1", :port=>6379}

[Validate]