Skip to content

Commit e15f915

Browse files
ricsamleibale
andauthored
Update invalid code example in README.md (redis#1654)
* Update invalid code example in README.md * Update README.md Co-authored-by: Leibale Eidelman <[email protected]>
1 parent 5ca567a commit e15f915

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,7 @@ await client.set('another-key', 'another-value');
111111
const [ setKeyReply, otherKeyValue ] = await client.multi()
112112
.set('key', 'value')
113113
.get('another-key')
114-
.exec()
115-
]); // ['OK', 'another-value']
114+
.exec(); // ['OK', 'another-value']
116115
```
117116

118117
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.

0 commit comments

Comments
 (0)