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

exists returns boolean instead of integer #187

Closed
ghost opened this issue Jun 11, 2020 · 3 comments · Fixed by #188
Closed

exists returns boolean instead of integer #187

ghost opened this issue Jun 11, 2020 · 3 comments · Fixed by #188
Labels

Comments

@ghost
Copy link

ghost commented Jun 11, 2020

According to Redis documentation for exists:

Return value
Integer reply, specifically:

1 if the key exists.
0 if the key does not exist.
@sds sds added the bug label Jun 15, 2020
@sds
Copy link
Owner

sds commented Jun 15, 2020

Thanks for reporting this issue!

Would welcome a pull request with a fix. Thank you!

swistaczek added a commit to swistaczek/mock_redis that referenced this issue Jun 15, 2020
@ghost
Copy link
Author

ghost commented Jun 15, 2020

It looks like going to redis 4.2 changed a lot of the API return values. Is anyone else working this?

@ghost
Copy link
Author

ghost commented Jun 15, 2020

I addressed all existing issues running against the latest redis (4.2.1). Ran into an error message on xadd that didn't seem to be consistent from my setup to the Travis build so I documented it and made Travis happy. Please take a look at the PR.

@sds sds closed this as completed in #188 Jun 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant