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

[6.x] Fix *scan methods for phpredis #32336

Merged
merged 2 commits into from
Apr 13, 2020

Conversation

shufo
Copy link
Contributor

@shufo shufo commented Apr 11, 2020

This PR fixes #24222, previously fixed in #24313 but reverted by broken test.
hscan, zscan, sscan problem on phpredis that it can't iterate sets with cursor still occurs 6.x, 7.x branch so I requested this pr. If something is wrong with pull request process, please let me know.

This PR fixes *scan methods for phpredis and add missing *scan tests to redis connection.

Current Behaviour

Redis Facade set phpredis as client returns no cursor with same results on every *scan call. So it can not iterate sets that has many members.
image

Fixed Behaviour

Returns cursor with results on *scan methods for phpredis. This behaviour is compatible with predis adapter.
It can iterate over sets until all member has been returned.
image

@taylorotwell taylorotwell merged commit fbb9b17 into laravel:6.x Apr 13, 2020
@ghost ghost mentioned this pull request Apr 13, 2020
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 this pull request may close these issues.

2 participants