Skip to content

Options are ignored when url option provided #43

@acco

Description

@acco

Here's the offending line:

https://github.com/kyknow/nestjs-redis/blob/master/lib/redis-client.provider.ts#L17

If you pass in a url, any other options are ignored:

RedisModule.register({
      url: process.env.REDIS_URL,
      keyPrefix: process.env.REDIS_KEY_PREFIX,
    }),

What's the intended behavior here? If the URL overwrites all other options, we should document and enforce with types.

Thanks!
Anthony

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions