Node-redis v4 and node-redis v5 diffrences #2769
-
Hey team, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
I suggest you start with v4 and upgrade to v5 whenever it's ready. See this for breaking changes (we are still debating some of them), and here this for "main" new features. If you are using one of the commands that will break (for example, you are using EXISTS, which in v4 returns a boolean, but in v5 returns a number), you can either:
|
Beta Was this translation helpful? Give feedback.
-
Unfortunately for working with clusters, node-redis ( Therefore I am going back to |
Beta Was this translation helpful? Give feedback.
Unfortunately for working with clusters, node-redis (
createCluster
) doesn’t provide the basic functionalities which it has oncreateClient
such as status of the connection, flushall etc. which makes it very hard to work, in addition to that it comes with wiered errors that are no documented on the site or somewhere else, and the worst part is the type system which does not work properly for it.Therefore I am going back to
ioredis
, I hope thatClusterAllFailedError: Failed to refresh slots cache.
in ioredis gets fixed