Skip to content

implement XSETID command#1559

Merged
vladvildanov merged 3 commits into
predis:mainfrom
alschastny:xsetid-command
Jun 16, 2025
Merged

implement XSETID command#1559
vladvildanov merged 3 commits into
predis:mainfrom
alschastny:xsetid-command

Conversation

@alschastny

Copy link
Copy Markdown
Contributor

This is the last of the missing commands for redis streams (https://redis.io/docs/latest/commands/xsetid/). And although it is marked as internal in the documentation, sometimes I had to use it.

@alschastny alschastny requested a review from tillkruss as a code owner June 12, 2025 14:56
@vladvildanov

Copy link
Copy Markdown
Contributor

@alschastny The RESP2 test doesn't work with Relay, as Relay is RESP3 only and it returns already parsed response (associative array), we have to check if XINFO STREAM response is already associative array and does not apply parsing in this case

@alschastny

Copy link
Copy Markdown
Contributor Author

I decided to split the test into 2 methods, one working with relay, and a more advanced one that is not compatible with relay. I also found another bug in XINFO, I will send a PR with a fix soon.

@vladvildanov vladvildanov merged commit 33e1174 into predis:main Jun 16, 2025
39 of 41 checks passed
@coveralls

Copy link
Copy Markdown

Coverage Status

coverage: 92.773% (+0.02%) from 92.75%
when pulling 1d2a349 on alschastny:xsetid-command
into 1e390b1 on predis:main.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants