@@ -210,7 +210,7 @@ client.get(new Buffer("foo_rand000000000000"), function(err, reply) {
210210** ` retry_strategy ` example:**
211211
212212``` js
213- var client = redis .createClient ({
213+ const client = redis .createClient ({
214214 retry_strategy : function (options ) {
215215 if (options .error && options .error .code === " ECONNREFUSED" ) {
216216 // End reconnecting on a specific error and flush all commands with
@@ -678,9 +678,9 @@ clients.watcher.watch("foo", function(watchError) {
678678 if (setError) throw err;
679679 });
680680
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.
684684 setTimeout (function () {
685685 clients .watcher
686686 .multi ()
@@ -840,7 +840,7 @@ returns it in the callback. If an error occurs in the meanwhile, that is going
840840to return an error instead in the callback.
841841
842842One 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
844844are used on the same Redis client instance as non-blocking commands, the
845845non-blocking ones may be queued up until after the blocking ones finish.
846846
0 commit comments