mperham/sidekiq — pull request #444 by jc00ke (2012-10-14 21:59:57+00:00)
Title: Allow generic Redis providers via env var

Instead of hardcoding every provider's environment variable, Sidekiq now
supports both `REDIS_PROVIDER` and `REDIS_URL` env vars.

Let's say you run on Heroku and you use openredis. You can now set
`REDIS_PROVIDER=OPENREDIS_URL` and Sidekiq will use the openredis uri.

If you switch to another provider, all you need to do is reset
`REDIS_PROVIDER`. An example of switching to RedisGreen:
`REDIS_PROVIDER=REDISGREEN_URL`. Easy peasy!

Sidekiq also supports using your own url with REDIS_URL. While you can
still pass in the URL to `Sidekiq::RedisConnection.create`, it's also now
possible to set it with just an env var.

Closes #443