DOC-2553 - Adds code examples for the set tutorial#2582
DOC-2553 - Adds code examples for the set tutorial#2582justincastilla wants to merge 2 commits intoredis:emb-examplesfrom
Conversation
| await client.del('bikes:racing:usa') | ||
| // REMOVE_END | ||
|
|
||
| // STEP_START sAdd |
There was a problem hiding this comment.
Unfortunately, case matters for step names.
| // STEP_START sAdd | |
| // STEP_START sadd |
| assert.equal(res4, 2) | ||
| // REMOVE_END | ||
|
|
||
| // STEP_START sIsMember |
There was a problem hiding this comment.
| // STEP_START sIsMember | |
| // STEP_START sismember |
| assert.equal(res6, false) | ||
| // REMOVE_END | ||
|
|
||
| // STEP_START sinster |
There was a problem hiding this comment.
| // STEP_START sinster | |
| // STEP_START sinter |
| assert.deepEqual(res7, [ 'bike:1' ]) | ||
| // REMOVE_END | ||
|
|
||
| // STEP_START sCard |
There was a problem hiding this comment.
| // STEP_START sCard | |
| // STEP_START scard |
| await client.del('bikes:racing:france') | ||
| // REMOVE_END | ||
|
|
||
| // STEP_START sAdd_sMembers |
There was a problem hiding this comment.
| // STEP_START sAdd_sMembers | |
| // STEP_START sadd_smembers |
| assert.deepEqual(res10.sort(), ['bike:1', 'bike:2', 'bike:3']) | ||
| // REMOVE_END | ||
|
|
||
| // STEP_START smIsMember |
There was a problem hiding this comment.
| // STEP_START smIsMember | |
| // STEP_START smismember |
| assert.deepEqual(res12, [true, true, false]) | ||
| // REMOVE_END | ||
|
|
||
| // STEP_START sDiff |
There was a problem hiding this comment.
| // STEP_START sDiff | |
| // STEP_START sdiff |
| await client.del('bikes:racing:italy') | ||
| // REMOVE_END | ||
|
|
||
| // STEP_START sRem |
There was a problem hiding this comment.
| // STEP_START sRem | |
| // STEP_START srem |
dwdougherty
left a comment
There was a problem hiding this comment.
Added corrections to step case in multiple places. Please commit these changes. Otherwise, the docs build correctly.
| await client.del('bikes:racing:france') | ||
| await client.del('bikes:racing:usa') |
There was a problem hiding this comment.
for consistency user flushdb
| const res5 = await client.sIsMember('bikes:racing:usa', 'bike:1') | ||
| console.log(res5) // >>> true | ||
|
|
||
| const res6 = await client.sIsMember('bikes:racing:usa', 'bike:2') | ||
| console.log(res6) // >>> false |
There was a problem hiding this comment.
returns 1/0 not true/false (at least in v5)
| console.log(res11) // >>> true | ||
|
|
||
| const res12 = await client.smIsMember('bikes:racing:france', ['bike:2', 'bike:3', 'bike:4']) | ||
| console.log(res12) // >>> [true, true, false] |
There was a problem hiding this comment.
in v5, we now return 1/1/0 not true/true/false
|
This pull request has been automatically marked as stale due to inactivity. |
Description
Adds code examples for the Set tutorial
DOC-2553
https://redislabs.atlassian.net/browse/DOC-2295
Checklist
npm testpass with this change (including linting)?