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
Copy file name to clipboardexpand all lines: README.md
+1
Original file line number
Diff line number
Diff line change
@@ -673,6 +673,7 @@ redis.set('foo', 'bar');
673
673
The arguments passed to the constructor are different from the ones you use to connect to a single node, where:
674
674
675
675
*`name` identifies a group of Redis instances composed of a master and one or more slaves (`mymaster` in the example);
676
+
*`sentinelPassword` (optional) password for Sentinel instances.
676
677
*`sentinels` are a list of sentinels to connect to. The list does not need to enumerate all your sentinel instances, but a few so that if one is down the client will try the next one.
677
678
*`role` (optional) with a value of `slave` will return a random slave from the Sentinel group.
678
679
*`preferredSlaves` (optional) can be used to prefer a particular slave or set of slaves based on priority. It accepts a function or array.
0 commit comments