default: &default
  url: <%= "redis://:#{ENV['REDIS_PASSWD'] || 'password'}@#{ENV['REDIS_HOST'] || 'localhost'}:#{ENV['REDIS_PORT'] || '6379'}" %>
  timeout: <%= ENV['REDIS_TIMEOUT'] || 15 %>
development:
  <<: *default
test:
  <<: *default
production:
  <<: *default

default: &default
  url: <%= "redis://:#{ENV['REDIS_PASSWD'] || 'password'}@#{ENV['REDIS_HOST'] || 'localhost'}:#{ENV['REDIS_PORT'] || '6379'}/#{ENV['REDIS_DB'] || '0'}" %>
  timeout: <%= ENV['REDIS_TIMEOUT'] || 15 %>
development:
  <<: *default
test:
  <<: *default
production:
  <<: *default

Add support to specify a Redis database in the environment. Defaults to /0
Add support to specify a Redis database in the environment. Defaults to /0
