Skip to content

Commit

Permalink
Update invalid code example in README.md (#1654)
Browse files Browse the repository at this point in the history
* Update invalid code example in README.md

* Update README.md

Co-authored-by: Leibale Eidelman <leibale1998@gmail.com>
  • Loading branch information
ricsam and leibale committed Sep 14, 2021
1 parent b91897a commit 64f4567
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions README.md
Expand Up @@ -111,8 +111,7 @@ await client.set('another-key', 'another-value');
const [ setKeyReply, otherKeyValue ] = await client.multi()
.set('key', 'value')
.get('another-key')
.exec()
]); // ['OK', 'another-value']
.exec(); // ['OK', 'another-value']
```

You can also [watch](https://redis.io/topics/transactions#optimistic-locking-using-check-and-set) keys by calling `.watch()`. Your transaction will abort if any of the watched keys change.
Expand Down

0 comments on commit 64f4567

Please sign in to comment.