Skip to content

Commit 51007e3

Browse files
committed
Command argument handling
1 parent d081589 commit 51007e3

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

content/develop/clients/nodejs/migration.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -137,15 +137,13 @@ objects are flattened into sequential key-value pairs:
137137

138138
```js
139139
// These commands are all equivalent.
140-
client.hset('user' {
140+
await client.hSet('user' {
141141
name: 'Bob',
142142
age: 20,
143143
description: 'I am a programmer',
144144
});
145145

146-
client.hset('user', ['name', 'Bob', 'age', 20, 'description', 'I am a programmer']);
147-
148-
client.hset('user', 'name', 'Bob', 'age', 20, 'description', 'I am a programmer');
146+
await client.hSet('user', ['name', 'Bob', 'age', 20, 'description', 'I am a programmer']);
149147
```
150148

151149
`node-redis` uses predefined formats for command arguments. These include specific

0 commit comments

Comments
 (0)