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
+27
Original file line number
Diff line number
Diff line change
@@ -658,6 +658,33 @@ the second word as first parameter:
658
658
Duplicate all current options and return a new redisClient instance. All options passed to the duplicate function are going to replace the original option.
659
659
If you pass a callback, duplicate is going to wait until the client is ready and returns it in the callback. If an error occurs in the meanwhile, that is going to return an error instead in the callback.
660
660
661
+
One example of when to use duplicate() would be to accomodate the connection-
662
+
blocking redis commands BRPOP, BLPOP, and BRPOPLPUSH. If these commands
663
+
are used on the same redisClient instance as non-blocking commands, the
664
+
non-blocking ones may be queued up until after the blocking ones finish.
0 commit comments