-
Notifications
You must be signed in to change notification settings - Fork 349
Support npm Node Redis v4 #337
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
Conversation
Update redis to v4 in package.json Update readme to include the new connect command
Thanks @BarryCarlyon for tackling this! Ideally, we would not loose compatibility with |
@wavded haven't tested as I'm unfamiliar this those. I'll see if I have some time to test with those rather than just node-redis |
I had a poke about. node-redis seems to have "broken" a lot of stuff when it comes to operating with "friendlyness" to other modules For example how scan in node-redis no longer accepts an array of args. So seems users can patch connect-redis to play well with node-redis, it won't remain interoperably with the family I don't think. |
I've come to a similar conclusion and am not recommending people upgrade to v4 at this time as v3 is still supported and seems faster. I have updated the readme and am watching the issues below to see if an upgrade path will become clearer: |
Yeah poking about further. it would be "solvable" if both used the same "send raw command function" But node-redis uses And ndoe-redis did something really weird with scan |
Fixed the scan function as the format has changed. Tests don't pass yet. tripping up on ttl/line 102
I pushed up my progress on getting tests to pass. The move to 4 was painful and as noted in the linked issues their migration guide is incomplete to say the least |
This PR is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days. |
Support for |
This should fix #336
Makes connect redis compatible with node redis v4
TLDR:
set
function and callsendCommand
instead ofset
as they have changed the args/array passing method too muchconnect
before passing the client toconnect-redis
I did not revise/update the tests as yet. May do so if I get a moment
As a mimum should get people running as they migrate