-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
mget returns false if array has one key #435
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
Comments
Hey, This is interesting and I can also replicate the behavior. This is likely something simple and I should have a bit of time this afternoon to take a look at couple of the recent issues. Cheers, |
The MGET call in RedisArray was failing under circumstances where none of the passed keys hashed into any given node in the ring. What was happening is that RedisArray was passing through to the phpredis MGET command an empty array, which was returning false. This in turn caused RedisArray to abort the process and return false as well. This change updates RedisArray MGET such that if a given node doesn't have any keys, we skip the call to it all together. Addresses #435 Addresses #436
Hey, I have sorted this problem in the branch Cheers! |
Merged and in master/develop, closing. |
If the array of keys only has 1 key, mget on RedisArray returns false. Shouldn't this still return the correct value?
The text was updated successfully, but these errors were encountered: