We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 51007e3 commit 2fb97e2Copy full SHA for 2fb97e2
content/develop/clients/nodejs/migration.md
@@ -352,9 +352,9 @@ command with an explicit method:
352
client.setnx('bike:1', 'bike');
353
```
354
355
-`node-redis` doesn't provide a `SETNX` method but implements the same
356
-functionality with the `NX` option to the [`SET`]({{< relref "/commands/set" >}})
357
-command:
+`node-redis` provides a `SETNX` method but due to the command being deprecated the same
+functionality can be achieved with the `NX` option to the [`SET`]({{< relref "/commands/set" >}})
+command instead:
358
359
```js
360
await client.set('bike:1', 'bike', {'NX': true});
0 commit comments