@@ -210,7 +210,7 @@ client.get(new Buffer("foo_rand000000000000"), function(err, reply) {
210
210
** ` retry_strategy ` example:**
211
211
212
212
``` js
213
- var client = redis .createClient ({
213
+ const client = redis .createClient ({
214
214
retry_strategy : function (options ) {
215
215
if (options .error && options .error .code === " ECONNREFUSED" ) {
216
216
// End reconnecting on a specific error and flush all commands with
@@ -678,9 +678,9 @@ clients.watcher.watch("foo", function(watchError) {
678
678
if (setError) throw err;
679
679
});
680
680
681
- // using a setTimeout here to ensure that the MULTI/EXEC will come after the SET.
682
- // Normally, you would use a callback to ensure order, but I want the above SET command
683
- // to be easily comment-out-able.
681
+ // using a setTimeout here to ensure that the MULTI/EXEC will come after the SET.
682
+ // Normally, you would use a callback to ensure order, but I want the above SET command
683
+ // to be easily comment-out-able.
684
684
setTimeout (function () {
685
685
clients .watcher
686
686
.multi ()
@@ -840,7 +840,7 @@ returns it in the callback. If an error occurs in the meanwhile, that is going
840
840
to return an error instead in the callback.
841
841
842
842
One example of when to use duplicate() would be to accommodate the connection-
843
- blocking redis commands BRPOP, BLPOP, and BRPOPLPUSH. If these commands
843
+ blocking redis commands ` BRPOP ` , ` BLPOP ` , and ` BRPOPLPUSH ` . If these commands
844
844
are used on the same Redis client instance as non-blocking commands, the
845
845
non-blocking ones may be queued up until after the blocking ones finish.
846
846
0 commit comments