Skip to content

Conversation

@f0ff886f
Copy link

By default XGROUP CREATE passes $ as the ID which means "serve all IDs added from this point on".

Due to that, the XADD directly above never gets served to the XREADGROUP command and this example will just hang the first time you run it waiting.

Adding an explicit ID of 0 means we will get the previous message back in the XREADGROUP.

By default `XGROUP CREATE` passes `$` as the ID which means "serve all IDs added from this point on".

Due to that, the `XADD` directly above never gets served to the `XREADGROUP` command and this example will just hang the first time you run it waiting.

Adding an explicit ID of 0 means we will get the previous message back in the `XREADGROUP`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants