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 0f3d0f3 commit 6a3ea59Copy full SHA for 6a3ea59
doctests/dt-string.js
@@ -1,4 +1,4 @@
1
-// EXAMPLE: string_tutorial
+// EXAMPLE: set_tutorial
2
// HIDE_START
3
import assert from 'assert';
4
import { createClient } from 'redis';
@@ -10,7 +10,7 @@ await client.connect();
10
await client.flushDb();
11
// REMOVE_END
12
13
-// STEP_START set
+// STEP_START set_get
14
const res1 = await client.set("bike:1", "Deimos");
15
console.log(res1); // OK
16
const res2 = await client.get("bike:1");
@@ -22,7 +22,7 @@ assert.equal(res1, 'OK');
22
assert.equal(res2, 'Deimos');
23
24
25
-// STEP_START set_nx_xx
+// STEP_START setnx_xx
26
const res3 = await client.set("bike:1", "bike", {'NX': true});
27
console.log(res3); // null
28
console.log(await client.get("bike:1")); // Deimos
0 commit comments