11[ redis-x-stream] ( ../README.md ) / [ Exports] ( ../modules.md ) / RedisStream
22
3- # Class: RedisStream<T\>
4-
5- ## Type parameters
6-
7- | Name | Type |
8- | :------ | :------ |
9- | ` T ` | extends [ ` Mode ` ] ( ../modules.md#mode ) = `` "entry" `` |
3+ # Class: RedisStream
104
115## Table of contents
126
2620- [ done] ( RedisStream.md#done )
2721- [ first] ( RedisStream.md#first )
2822- [ group] ( RedisStream.md#group )
29- - [ mode] ( RedisStream.md#mode )
3023- [ noack] ( RedisStream.md#noack )
3124- [ pendingAcks] ( RedisStream.md#pendingacks )
3225- [ streams] ( RedisStream.md#streams )
4235
4336### constructor
4437
45- • ** new RedisStream** <` T ` \> (` options ` , ...` streams ` )
46-
47- #### Type parameters
48-
49- | Name | Type |
50- | :------ | :------ |
51- | ` T ` | extends [ ` Mode ` ] ( ../modules.md#mode ) = `` "entry" `` |
38+ • ** new RedisStream** (` options ` , ...` streams ` )
5239
5340#### Parameters
5441
5542| Name | Type |
5643| :------ | :------ |
57- | ` options ` | ` string ` \| [ ` RedisStreamOptions ` ] ( ../interfaces/RedisStreamOptions.md ) < ` T ` \> |
44+ | ` options ` | ` string ` \| [ ` RedisStreamOptions ` ] ( ../interfaces/RedisStreamOptions.md ) |
5845| ` ...streams ` | ` string ` [ ] |
5946
6047#### Defined in
6148
62- [ stream.ts:63] ( https://github.com/calebboyd/redis-x-stream/blob/b5db328 /src/stream.ts#L63 )
49+ [ stream.ts:63] ( https://github.com/calebboyd/redis-x-stream/blob/2ca6a5a /src/stream.ts#L63 )
6350
6451## Properties
6552
6956
7057#### Defined in
7158
72- [ stream.ts:35] ( https://github.com/calebboyd/redis-x-stream/blob/b5db328 /src/stream.ts#L35 )
59+ [ stream.ts:35] ( https://github.com/calebboyd/redis-x-stream/blob/2ca6a5a /src/stream.ts#L35 )
7360
7461___
7562
7966
8067#### Defined in
8168
82- [ stream.ts:31] ( https://github.com/calebboyd/redis-x-stream/blob/b5db328 /src/stream.ts#L31 )
69+ [ stream.ts:31] ( https://github.com/calebboyd/redis-x-stream/blob/2ca6a5a /src/stream.ts#L31 )
8370
8471___
8572
8976
9077#### Defined in
9178
92- [ stream.ts:32] ( https://github.com/calebboyd/redis-x-stream/blob/b5db328 /src/stream.ts#L32 )
79+ [ stream.ts:32] ( https://github.com/calebboyd/redis-x-stream/blob/2ca6a5a /src/stream.ts#L32 )
9380
9481___
9582
9683### client
9784
9885• ` Readonly ` ** client** : ` Redis `
9986
87+ 'entry' mode will dispense each entry of each stream
88+ 'stream' mode will dispense each stream containing entries
89+ 'batch' mode will dispense all streams with all entries
90+
10091#### Defined in
10192
102- [ stream.ts:23] ( https://github.com/calebboyd/redis-x-stream/blob/b5db328 /src/stream.ts#L23 )
93+ [ stream.ts:23] ( https://github.com/calebboyd/redis-x-stream/blob/2ca6a5a /src/stream.ts#L23 )
10394
10495___
10596
109100
110101#### Defined in
111102
112- [ stream.ts:25] ( https://github.com/calebboyd/redis-x-stream/blob/b5db328 /src/stream.ts#L25 )
103+ [ stream.ts:25] ( https://github.com/calebboyd/redis-x-stream/blob/2ca6a5a /src/stream.ts#L25 )
113104
114105___
115106
119110
120111#### Defined in
121112
122- [ stream.ts:29] ( https://github.com/calebboyd/redis-x-stream/blob/b5db328 /src/stream.ts#L29 )
113+ [ stream.ts:29] ( https://github.com/calebboyd/redis-x-stream/blob/2ca6a5a /src/stream.ts#L29 )
123114
124115___
125116
129120
130121#### Defined in
131122
132- [ stream.ts:36] ( https://github.com/calebboyd/redis-x-stream/blob/b5db328 /src/stream.ts#L36 )
123+ [ stream.ts:36] ( https://github.com/calebboyd/redis-x-stream/blob/2ca6a5a /src/stream.ts#L36 )
133124
134125___
135126
@@ -141,7 +132,7 @@ Flag for iterable state
141132
142133#### Defined in
143134
144- [ stream.ts:48] ( https://github.com/calebboyd/redis-x-stream/blob/b5db328 /src/stream.ts#L48 )
135+ [ stream.ts:48] ( https://github.com/calebboyd/redis-x-stream/blob/2ca6a5a /src/stream.ts#L48 )
145136
146137___
147138
151142
152143#### Defined in
153144
154- [ stream.ts:49] ( https://github.com/calebboyd/redis-x-stream/blob/b5db328 /src/stream.ts#L49 )
145+ [ stream.ts:49] ( https://github.com/calebboyd/redis-x-stream/blob/2ca6a5a /src/stream.ts#L49 )
155146
156147___
157148
161152
162153#### Defined in
163154
164- [ stream.ts:24] ( https://github.com/calebboyd/redis-x-stream/blob/b5db328/src/stream.ts#L24 )
165-
166- ___
167-
168- ### mode
169-
170- • ` Readonly ` ** mode** : [ ` Mode ` ] ( ../modules.md#mode ) = ` 'entry' `
171-
172- 'entry' mode will dispense each entry of each stream
173- 'stream' mode will dispense each stream containing entries
174- 'batch' mode will dispense all streams with all entries
175-
176- #### Defined in
177-
178- [ stream.ts:22] ( https://github.com/calebboyd/redis-x-stream/blob/b5db328/src/stream.ts#L22 )
155+ [ stream.ts:24] ( https://github.com/calebboyd/redis-x-stream/blob/2ca6a5a/src/stream.ts#L24 )
179156
180157___
181158
185162
186163#### Defined in
187164
188- [ stream.ts:30] ( https://github.com/calebboyd/redis-x-stream/blob/b5db328 /src/stream.ts#L30 )
165+ [ stream.ts:30] ( https://github.com/calebboyd/redis-x-stream/blob/2ca6a5a /src/stream.ts#L30 )
189166
190167___
191168
@@ -199,7 +176,7 @@ Acks waiting to be sent on either:
199176
200177#### Defined in
201178
202- [ stream.ts:44] ( https://github.com/calebboyd/redis-x-stream/blob/b5db328 /src/stream.ts#L44 )
179+ [ stream.ts:44] ( https://github.com/calebboyd/redis-x-stream/blob/2ca6a5a /src/stream.ts#L44 )
203180
204181___
205182
@@ -209,27 +186,27 @@ ___
209186
210187#### Defined in
211188
212- [ stream.ts:28] ( https://github.com/calebboyd/redis-x-stream/blob/b5db328 /src/stream.ts#L28 )
189+ [ stream.ts:28] ( https://github.com/calebboyd/redis-x-stream/blob/2ca6a5a /src/stream.ts#L28 )
213190
214191## Methods
215192
216193### [ asyncIterator]
217194
218- ▸ ** [ asyncIterator] ** (): ` AsyncIterator ` <` T ` extends `` "entry" `` ? ` XEntryResult ` : ` T ` extends `` "batch" `` ? ` XStreamResult ` [ ] : ` XStreamResult ` , ` any ` , ` undefined ` \>
195+ ▸ ** [ asyncIterator] ** (): ` AsyncIterator ` <` XEntryResult ` , ` any ` , ` undefined ` \>
219196
220197#### Returns
221198
222- ` AsyncIterator ` <` T ` extends `` "entry" `` ? ` XEntryResult ` : ` T ` extends `` "batch" `` ? ` XStreamResult ` [ ] : ` XStreamResult ` , ` any ` , ` undefined ` \>
199+ ` AsyncIterator ` <` XEntryResult ` , ` any ` , ` undefined ` \>
223200
224201#### Defined in
225202
226- [ stream.ts:124 ] ( https://github.com/calebboyd/redis-x-stream/blob/b5db328 /src/stream.ts#L124 )
203+ [ stream.ts:128 ] ( https://github.com/calebboyd/redis-x-stream/blob/2ca6a5a /src/stream.ts#L128 )
227204
228205___
229206
230207### ack
231208
232- ▸ ** ack** (` stream ` , ...` ids ` ): ` void `
209+ ▸ ** ack** (` stream ` , ...` ids ` ): ` undefined `
233210
234211#### Parameters
235212
@@ -240,11 +217,11 @@ ___
240217
241218#### Returns
242219
243- ` void `
220+ ` undefined `
244221
245222#### Defined in
246223
247- [ stream.ts:179 ] ( https://github.com/calebboyd/redis-x-stream/blob/b5db328 /src/stream.ts#L179 )
224+ [ stream.ts:185 ] ( https://github.com/calebboyd/redis-x-stream/blob/2ca6a5a /src/stream.ts#L185 )
248225
249226___
250227
258235
259236#### Defined in
260237
261- [ stream.ts:168 ] ( https://github.com/calebboyd/redis-x-stream/blob/b5db328 /src/stream.ts#L168 )
238+ [ stream.ts:174 ] ( https://github.com/calebboyd/redis-x-stream/blob/2ca6a5a /src/stream.ts#L174 )
262239
263240___
264241
272249
273250#### Defined in
274251
275- [ stream.ts:188 ] ( https://github.com/calebboyd/redis-x-stream/blob/b5db328 /src/stream.ts#L188 )
252+ [ stream.ts:195 ] ( https://github.com/calebboyd/redis-x-stream/blob/2ca6a5a /src/stream.ts#L195 )
0 commit comments