@@ -49,7 +49,7 @@ assert.equal(await client.xLen('race:france'), 3);
49
49
// REMOVE_END
50
50
51
51
// STEP_START xRange
52
- const res4 = await client . xRange ( 'race:france' , '1691765278160-0' , '+' , 2 ) ;
52
+ const res4 = await client . xRange ( 'race:france' , '1691765278160-0' , '+' , { COUNT : 2 } ) ;
53
53
console . log ( res4 ) ; // >>> [('1692629576966-0', {'rider': 'Castilla', 'speed': '30.2', 'position': '1', 'location_id': '1'}), ('1692629594113-0', {'rider': 'Norem', 'speed': '28.8', 'position': '3', 'location_id': '1'})]
54
54
// STEP_END
55
55
@@ -121,22 +121,22 @@ console.log(res12); // >>> [('1692629576966-0', {'rider': 'Castilla', 'speed': '
121
121
// STEP_END
122
122
123
123
// STEP_START xRange_step_1
124
- const res13 = await client . xRange ( 'race:france' , '-' , '+' , 2 ) ;
124
+ const res13 = await client . xRange ( 'race:france' , '-' , '+' , { COUNT : 2 } ) ;
125
125
console . log ( res13 ) ; // >>> [('1692629576966-0', {'rider': 'Castilla', 'speed': '30.2', 'position': '1', 'location_id': '1'}), ('1692629594113-0', {'rider': 'Norem', 'speed': '28.8', 'position': '3', 'location_id': '1'})]
126
126
// STEP_END
127
127
128
128
// STEP_START xRange_step_2
129
- const res14 = await client . xRange ( 'race:france' , '(1692629594113-0' , '+' , 2 ) ;
129
+ const res14 = await client . xRange ( 'race:france' , '(1692629594113-0' , '+' , { COUNT : 2 } ) ;
130
130
console . log ( res14 ) ; // >>> [('1692629613374-0', {'rider': 'Prickett', 'speed': '29.7', 'position': '2', 'location_id': '1'}), ('1692629676124-0', {'rider': 'Castilla', 'speed': '29.9', 'position': '1', 'location_id': '2'})]
131
131
// STEP_END
132
132
133
133
// STEP_START xRange_empty
134
- const res15 = await client . xRange ( 'race:france' , '(1692629676124-0' , '+' , 2 ) ;
134
+ const res15 = await client . xRange ( 'race:france' , '(1692629676124-0' , '+' , { COUNT : 2 } ) ;
135
135
console . log ( res15 ) ; // >>> []
136
136
// STEP_END
137
137
138
138
// STEP_START xrevrange
139
- const res16 = await client . xRevRange ( 'race:france' , '+' , '-' , 1 ) ;
139
+ const res16 = await client . xRevRange ( 'race:france' , '+' , '-' , { COUNT : 1 } ) ;
140
140
console . log (
141
141
res16
142
142
) ; // >>> [('1692629676124-0', {'rider': 'Castilla', 'speed': '29.9', 'position': '1', 'location_id': '2'})]
0 commit comments