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 - This option can be passed via the createClient options, so I've added documentation to indicate that this is required if users would like to use v4.0.0 of node-redis - Note that the legacyMode flag is **required** to be passed if the calling code isn't going to be changed
- Loading branch information