-
Notifications
You must be signed in to change notification settings - Fork 11.2k
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
Prefixed Redis Connections not working as expected for scan command #24257
Comments
@ragingdave gonna close this due to inactivity. Feel free to reply if this is still an issue. |
I just ran into this same issue. @driesvints could you reopen this please? Reproduction steps using
If you open
The same issue occurs when using the |
@matt-allan does anything from the attempted PR help? #24299 |
@driesvints thanks for reopening this. There have been a lot of changes since #24299 in both the connection class and the tests that should make fixing this easier. I will try and put a PR together today or early next week. |
There's also a PhpRedis issue for this at phpredis/phpredis#548. Might be better to fix it there instead of creating a workaround that breaks as soon as PhpRedis starts respecting the prefix. |
That comment would seem to suggest that we would then need versioned phpredis connections to account for that difference? |
It sounds like it's going to be an optional feature you have to specifically opt-in to (for BC reasons), so we don't have to take it into account. Although it might make sense to add a version check and delegate prefix handing to PhpRedis in the future. |
Closing this as this seems like a PhpRedis issue rather than a Laravel issue. |
FYI PhpRedis has merged support for a new |
Description:
In both PhpRedis and Predis connections when running a scan command, the prefix doesn't appear to function as expected. In a non-prefixed predis connection, scanning with a match of
test
on a prefilled redis database like:I get the expected single result of test.
When running that same test will prefixed entries in the database like:
and the same match condition, I get no results.
I would assume the expectation would be that any command run on a prefixed connection would only operate on that prefix and that the prefix usage would basically just be invisible like:
This is even backed up by the Predis client options (https://github.com/nrk/predis/wiki/Client-Options)
Steps To Reproduce:
The text was updated successfully, but these errors were encountered: