Skip to content

Commit a513c8b

Browse files
committed
docs: update readme
1 parent 9d68ae7 commit a513c8b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -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
840840
to return an error instead in the callback.
841841

842842
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
844844
are used on the same Redis client instance as non-blocking commands, the
845845
non-blocking ones may be queued up until after the blocking ones finish.
846846

0 commit comments

Comments
 (0)