Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(command): add support of RESP output format for the POLLUPDATES command #2745

Merged
merged 6 commits into from
Jan 27, 2025

Conversation

git-hulk
Copy link
Member

@git-hulk git-hulk commented Jan 27, 2025

This PR introduces the RESP format to make it easier to debug and parse polling updates.

127.0.0.1:6666> POLLUPDATES 0 MAX 2 FORMAT RESP
1) "next_sequence"
2) (integer) 3
3) "latest_sequence"
4) (integer) 3
5) "updates"
6) 1) "default"
   2) 1) 1) "SET"
         2) "a"
         3) "1"

This closes #2712

…command

This PR introduces the RESP format to make it easier to debug and parse
polling updates.

```
127.0.0.1:6666> POLLUPDATES 0 MAX 2 FORMAT RESP
1) "next_sequence"
2) (integer) 3
3) "latest_sequence"
4) (integer) 3
5) "updates"
6) 1) "default"
   2) 1) 1) "SET"
         2) "a"
         3) "1"

```
Co-authored-by: Twice <twice@apache.org>
PragmaTwice
PragmaTwice previously approved these changes Jan 27, 2025
@PragmaTwice PragmaTwice merged commit c22f5e1 into apache:unstable Jan 27, 2025
34 checks passed
git-hulk added a commit to git-hulk/kvrocks that referenced this pull request Jan 28, 2025
…command (apache#2745)

Co-authored-by: Twice <twice@apache.org>
Co-authored-by: Twice <twice.mliu@gmail.com>
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.

Add support of the RESP format for the POLLUPDATES command
2 participants