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

add ioredis integration #291

Merged
merged 1 commit into from
Sep 21, 2018
Merged

add ioredis integration #291

merged 1 commit into from
Sep 21, 2018

Conversation

rochdev
Copy link
Member

@rochdev rochdev commented Sep 20, 2018

This PR adds support for ioredis. For now only 4.x is supported since supporting older versions will require support for Bluebird as well which is not yet available.

Closes #259

@rochdev rochdev added enhancement New feature or request integrations labels Sep 20, 2018
@rochdev rochdev added this to the 0.6.0 milestone Sep 20, 2018
@pawelchcki pawelchcki self-requested a review September 21, 2018 15:12
Copy link

@pawelchcki pawelchcki left a comment

Choose a reason for hiding this comment

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

Overall looks good - I really like how clean the implementation is.

However looking at how command.promise worked here,
got me thinking that it might be worthwhile to add some tests that ensures that data returned in command. promise.then is correctly propagated back to the caller.

Also if you're connecting here to a real Redis instance, would it be possible to create a "round trip" test, i.e set 'x' 'y' get 'x' == 'y'?

WDYT ?

test/plugins/ioredis.spec.js Show resolved Hide resolved
Copy link

@pawelchcki pawelchcki left a comment

Choose a reason for hiding this comment

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

My node JS might be a bit rusty but it does Look Good to Me 👍

@rochdev rochdev merged commit 80ab467 into v0.6.0 Sep 21, 2018
@rochdev rochdev deleted the ioredis branch September 21, 2018 15:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request integrations
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants