Skip to content

Update LPOP and RPOP command description #308

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

hwware
Copy link
Member

@hwware hwware commented Jun 5, 2025

Existing descriptions only mention pop up one element and do not tell the user the list will be deleted if the last element is popped.

It is related to valkey pr valkey-io/valkey#2179

@hwware hwware force-pushed the update-lpop-rpop-md branch from 0ecfb42 to 9844df9 Compare June 5, 2025 18:57
hwware added a commit to valkey-io/valkey that referenced this pull request Jul 2, 2025
When I work on Slot-level metrics and info keysize feature, I read lpop
and rpop command source code, the description confused me. I think these
2 commands description on website (https://valkey.io/commands/lpop/ and
https://valkey.io/commands/rpop/) and json files were not updated after
count argument was added.
The return result could be one element only or up to count elements if
the optional count argument is provided.

It is related to valkey-doc pr
valkey-io/valkey-doc#308

---------

Signed-off-by: hwware <[email protected]>
Signed-off-by: Wen Hui <[email protected]>
Co-authored-by: Viktor Söderqvist <[email protected]>
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.

1 participant