You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: added the option for disabling slots refresh, fixed concurrent calls to refreshSlotsCache (#1972)
* Added the option for disabling slots refresh
* Fixed an issue with calling refreshSlotsCache constantly
* minor fix
* refactored refreshSlotsCache for better consistency
* Updated readme
state stabilized after a failover, so adding a delay before resending can prevent a ping pong effect.
1008
1008
- `redisOptions`: Default options passed to the constructor of `Redis` when connecting to a node.
1009
1009
- `slotsRefreshTimeout`: Milliseconds before a timeout occurs while refreshing slots from the cluster (default `1000`).
1010
-
- `slotsRefreshInterval`: Milliseconds between every automatic slots refresh (default `5000`).
1010
+
- `slotsRefreshInterval`: Milliseconds between every automatic slots refresh (default `5000`), setting it to a negative value will disable the slots refresh.
0 commit comments