From a513c8b7e221667801faa070de3323c5d21db2b0 Mon Sep 17 00:00:00 2001 From: Salakar Date: Sun, 9 Feb 2020 05:48:50 +0000 Subject: [PATCH] docs: update readme --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 847dd8bd20c..0167d5dbd0e 100644 --- a/README.md +++ b/README.md @@ -210,7 +210,7 @@ client.get(new Buffer("foo_rand000000000000"), function(err, reply) { **`retry_strategy` example:** ```js -var client = redis.createClient({ +const client = redis.createClient({ retry_strategy: function(options) { if (options.error && options.error.code === "ECONNREFUSED") { // End reconnecting on a specific error and flush all commands with @@ -678,9 +678,9 @@ clients.watcher.watch("foo", function(watchError) { if (setError) throw err; }); - //using a setTimeout here to ensure that the MULTI/EXEC will come after the SET. - //Normally, you would use a callback to ensure order, but I want the above SET command - //to be easily comment-out-able. + // using a setTimeout here to ensure that the MULTI/EXEC will come after the SET. + // Normally, you would use a callback to ensure order, but I want the above SET command + // to be easily comment-out-able. setTimeout(function() { clients.watcher .multi() @@ -840,7 +840,7 @@ returns it in the callback. If an error occurs in the meanwhile, that is going to return an error instead in the callback. One example of when to use duplicate() would be to accommodate the connection- -blocking redis commands BRPOP, BLPOP, and BRPOPLPUSH. If these commands +blocking redis commands `BRPOP`, `BLPOP`, and `BRPOPLPUSH`. If these commands are used on the same Redis client instance as non-blocking commands, the non-blocking ones may be queued up until after the blocking ones finish.