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

Should LPUSH return the length of the list? #85

Open
charleswhchan opened this issue May 20, 2015 · 3 comments
Open

Should LPUSH return the length of the list? #85

charleswhchan opened this issue May 20, 2015 · 3 comments

Comments

@charleswhchan
Copy link
Contributor

According to the official Redis LPUSH documentation:

Return value
Integer reply: the length of the list after the push operations.

When I use mockredis, the same function returns None.

@charleswhchan charleswhchan changed the title LPUSH does not return the length of the list, returns None instead Should LPUSH return the length of the list? May 22, 2015
@charleswhchan
Copy link
Contributor Author

Check redis-py client test case:
https://github.com/andymccurdy/redis-py/blob/81429b44acff3f238a212a1651241b49cde76c85/tests/test_commands.py#L640

Test indicates the function should return the queue length upon completion.

@charleswhchan
Copy link
Contributor Author

Anyone able to comment the issue / review the fix?

srikalyan added a commit that referenced this issue Nov 9, 2016
CC - Fix issue #85. Return length of list after LPUSH/RPUSH command.
@kblin
Copy link

kblin commented Dec 8, 2016

Now that this is merged, is it possible to get a new version with the fix?

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

No branches or pull requests

2 participants