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 options through to redis duplicate call #209

Merged
merged 2 commits into from
Mar 27, 2019
Merged

Conversation

emadum
Copy link
Contributor

@emadum emadum commented Mar 22, 2019

This PR passes the options argument through to node_redis's duplicate call. In this case, I need to pass {detect_buffers: true} on the cloned connection to make proper use of the DUMP/RESTORE Redis commands.

This is something that would not be necessary if we migrated Hydra to ioredis, which has a more elegant API for handling buffers.

We should probably also add the callback argument, to allow maximum flexibility, which if present uses a non-blocking version of the call.

@emadum emadum requested a review from cjus March 22, 2019 19:07
Copy link
Contributor

@cjus cjus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@emadum emadum merged commit bef363c into master Mar 27, 2019
@cjus cjus deleted the redisDuplicateOpts branch October 13, 2020 01:49
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.

2 participants