Skip to content

Commit 70e14b0

Browse files
committed
change example name
1 parent c32f916 commit 70e14b0

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

doctests/cmds-string.js

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// EXAMPLE: set_and_get
1+
// EXAMPLE: cmds_string
22
// REMOVE_START
33
import assert from "assert";
44
// REMOVE_END
@@ -7,19 +7,21 @@ import assert from "assert";
77
import { createClient } from 'redis';
88

99
const client = createClient();
10-
1110
client.on('error', err => console.log('Redis Client Error', err));
12-
1311
await client.connect();
14-
12+
await client.del('bike:1')
1513
// HIDE_END
14+
15+
// STEP_START set_and_get
1616
await client.set('bike:1', 'Process 134');
1717
const value = await client.get('bike:1');
1818
console.log(value);
1919
// returns 'Process 134'
20-
//REMOVE_START
20+
// REMOVE_START
2121
assert.equal(value, 'Process 134');
22-
//REMOVE_END
22+
await client.del('bike:1')
23+
// REMOVE_END
24+
// STEP_END
2325

2426
// HIDE_START
2527
await client.quit();

0 commit comments

Comments
 (0)