Skip to content

Support for new LPOS command #1353

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

Closed
aparcar opened this issue Jun 20, 2020 · 0 comments · Fixed by #1354
Closed

Support for new LPOS command #1353

aparcar opened this issue Jun 20, 2020 · 0 comments · Fixed by #1354

Comments

@aparcar
Copy link
Contributor

aparcar commented Jun 20, 2020

Redis 6.0.6 will support a new command called LPOS

The command returns the index of matching elements inside a Redis list. By default, when no options are given, it will scan the list from head to tail, looking for the first match of "element". If the element is found, its index (the zero-based position in the list) is returned. Otherwise, if no match is found, NULL is returned.

Version: redis 6.0.6

Platform: all

Description: This is no bug report but a notification of the new command.

@aparcar aparcar mentioned this issue Jun 21, 2020
4 tasks
aparcar added a commit to aparcar/redis-py that referenced this issue Jul 22, 2020
fix redis#1353

Signed-off-by: Paul Spooren <[email protected]>
andymccurdy pushed a commit that referenced this issue Jul 22, 2020
Added the LPOS command from Redis 6.0.6

Fixes #1353
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 a pull request may close this issue.

1 participant