Skip to content

Add support for the LPUSH command as a list operation #58

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

rolinh
Copy link

@rolinh rolinh commented Mar 14, 2018

This PR adds support for the LPUSH command. There are scenarios where inserting at the head of the list rather than the tail is needed, especially considering operations like RPOPLPUSH have no equivalent for working with the head of the list (LPOPLPUSH does not exist for instance).

The default list operation remains RPUSH. However, LPUSH may be set via
the new list_operation configuration option. This means that compatibility is preserved.

While here, fix documentation about the minimum version for RPUSH/LPUSH
support, which is 1.0.0 according to Redis documentation.

The LPUSH command inserts at the head of the list, as opposed to RPUSH
which inserts at the head of the list.

The default list operation remains RPUSH. However, LPUSH may be set via
the list_operation configuration option.

While here, fix documentation about the minimum version for RPUSH/LPUSH
support, which is 1.0.0 according to Redis documentation.
@jakelandis
Copy link
Contributor

Any community members that can help review this PR ?

@rolinh
Copy link
Author

rolinh commented Apr 10, 2019

Is there a chance this will ever get reviewed?

@process0
Copy link
Contributor

What is needed to have this PR verified?

@gilbertgrant
Copy link

HI, we also have need of this - for sidekiq integration. Any chance we can get this into the plugin?

@jrgns
Copy link

jrgns commented Jul 20, 2020

For what it's worth, the change looks simple and effective, and we'd love to see this merged.

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

Successfully merging this pull request may close these issues.

6 participants