Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for node-redis v4.0.0 and newer
- Fixes #8420 - v4.0.0 and newer of node-redis will no longer auto-connect, so we need to add that step - For backwards compatibility, we check for the existence of a "v4" property so we don't try to call `connect` on older versions of the client - A `legacyMode` flag exists in the new v4.0.0 of node-redis to keep a similar calling style without having to change any code - Note that the legacyMode flag is **required** to be passed if the calling code isn't going to be changed
- Loading branch information
Showing
2 changed files
with
8 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters