Skip to content

Commit

Permalink
docs: update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Salakar committed Feb 9, 2020
1 parent 9d68ae7 commit a513c8b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Expand Up @@ -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
Expand Down Expand Up @@ -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()
Expand Down Expand Up @@ -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.

Expand Down

0 comments on commit a513c8b

Please sign in to comment.