Skip to content

Commit d3a0400

Browse files
authored
fix inconsistency in docs (redis#2559)
The examples don't mention apples, strawberries or oranges, so let's change the text to match the examples.
1 parent 4d345ac commit d3a0400

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/data-types/streams.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ This is almost always what you want, however it is also possible to specify a re
439439
* If the ID is the special ID `>` then the command will return only new messages never delivered to other consumers so far, and as a side effect, will update the consumer group's *last ID*.
440440
* If the ID is any other valid numerical ID, then the command will let us access our *history of pending messages*. That is, the set of messages that were delivered to this specified consumer (identified by the provided name), and never acknowledged so far with `XACK`.
441441

442-
We can test this behavior immediately specifying an ID of 0, without any **COUNT** option: we'll just see the only pending message, that is, the one about apples:
442+
We can test this behavior immediately specifying an ID of 0, without any **COUNT** option: we'll just see the only pending message, that is, the one about Castilla:
443443

444444
{{< clients-example stream_tutorial xgroup_read_id >}}
445445
> XREADGROUP GROUP italy_riders Alice STREAMS race:italy 0
@@ -474,7 +474,7 @@ Now it's Bob's turn to read something:
474474
2) "Sam-Bodden"
475475
{{< /clients-example >}}
476476

477-
Bob asked for a maximum of two messages and is reading via the same group `mygroup`. So what happens is that Redis reports just *new* messages. As you can see the "apple" message is not delivered, since it was already delivered to Alice, so Bob gets orange and strawberry, and so forth.
477+
Bob asked for a maximum of two messages and is reading via the same group `mygroup`. So what happens is that Redis reports just *new* messages. As you can see the "Castilla" message is not delivered, since it was already delivered to Alice, so Bob gets Royce and Sam-Bodden and so forth.
478478

479479
This way Alice, Bob, and any other consumer in the group, are able to read different messages from the same stream, to read their history of yet to process messages, or to mark messages as processed. This allows creating different topologies and semantics for consuming messages from a stream.
480480

0 commit comments

Comments
 (0)