Skip to content

Conversation

@vadimonus
Copy link
Contributor

@vadimonus vadimonus commented Nov 20, 2025

Split from #57714

Unskipping some more tests in RedisStoreTest. The're failing with Cannot use 'KEYS' with redis-cluster. (see https://github.com/laravel/framework/actions/runs/19545929346/job/55964541433?pr=57841).

Other commands like MGET, MSET, DEL fails only when keys hashes to different slots. Unlike them KEYS command is not working with cluster at all. See vendor/predis/predis/src/Cluster/ClusterStrategy.php, it does not lists KEYS command at all, meaning it will never found slot and node and allways fail.

As far as keys command was never really working with PredisClusterConnection, adding such method will not break any backward compatibility. keys method work same way as flushdb method, aggregating results over all nodes.

Couple not related to PR checks are failing

@github-actions
Copy link

Thanks for submitting a PR!

Note that draft PR's are not reviewed. If you would like a review, please mark your pull request as ready for review in the GitHub user interface.

Pull requests that are abandoned in draft may be closed due to inactivity.

@vadimonus vadimonus marked this pull request as ready for review November 20, 2025 18:31
@taylorotwell taylorotwell merged commit 8f982ce into laravel:12.x Nov 20, 2025
66 checks passed
@vadimonus vadimonus deleted the redis-cluster-keys-for-predis branch November 21, 2025 02:08
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