Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pass redis options through, rather than attempt to parse them #1178

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

alex-h-strachan
Copy link

Use case - I would like to use a redis configuration like
{ url: 'my-connection-url', tls: { servername: 'my-servername' } }

This is the easiest configuration for Microsoft Azure's fully managed redis. While it's possible to support this with the existing configuration it requires de-structuring the connection url, passing it through to Kue where it will be re-constructed and passed back. With this PR, the same opts can be provided to the redis.createClient() function as go to Kue.

To maintain compatibility, I've translated the options.redis.socket to the "path" argument passed to redis & I took the options.redis.options and spread them into the main configuration, so they should still be supported.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant