Skip to content

Support ENV["REDIS_URL"] out of the box #135

@dup2

Description

@dup2

While reading the documentation for most other redis clients (in different languages) I found that the environment variable REDIS_URL is supported and being used out of the box for most implementation.

This helps in setting up CI jobs and container based environment as you do not have to call specific initialiser code in the project and for specs, mocking is much easier to achieve.

I see that at the moment the fallback is "hardcoded" to localhost:6379 via default parameter values. This would probably need a change in a way that they could be nil and then first ENV["REDIS_URL"] is checked and afterwards the fallback is "localhost:6379" as it is now.

What do you think about this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions