Closed thavlik closed 4 years ago
Thank you, that makes sense. Does it need separate pub
and sub
connections? Also, could you add the new options to the Readme documentation?
Was curious if this PR was the recommended approach or if perhaps a refactor to ioredis would be more appropriate.
I need Redis Cluster connectivity support which ioredis handles.
This adds support for passing in existing redis connection(s) to the adapter, consequently allowing support for ioredis and other clients. The redis ready events also now race so only one will resolve/reject, whereas before the error promise would reject on the first error, even after the adapter indicated it was ready. Sorry about the ugly diff.