Also, for the extremely anal, uri-redis is aware of the database number:
require 'uri-redis' conf = URI.parse 'redis://localhost:6379/1' conf.host # => localhost conf.port # => 6379 conf.db # => 1
Also, for the extremely anal, uri-redis is aware of the database number: