Skip to content

Conversation

@vadimonus
Copy link
Contributor

@vadimonus vadimonus commented Nov 19, 2025

This PR is split from of #57714

MemoizedStoreTest was skipped in #57710, it was failing with RedisCluster, because such commands as FlushAll and FlushDb should be called on each node separately.
Laravel already has implementation for flushDb over all nodes in cluster. So just replacing flushAll with flushing databases used in test to unskip it.

After that test failed on PredisClusterConnection (see https://github.com/laravel/framework/actions/runs/19509599522/job/55845498143)
That's because MemoizedStore relies heavily on many method, that do not work on PredisCluster, if keys hashes to different slots. PHPRedis mget implementation works well even if key hashes differs.

So, i replicated solution from #53940 , but only for PredisCluster.

@vadimonus vadimonus marked this pull request as draft November 19, 2025 17:06
@vadimonus vadimonus changed the title [12.x] Fixing MemoizedStoreTest to run with Redis Cluster [12.x] Fixing MemoizedStore with Redis Cluster Nov 19, 2025
@vadimonus vadimonus marked this pull request as ready for review November 19, 2025 18:41
@taylorotwell taylorotwell merged commit 5e417e9 into laravel:12.x Nov 19, 2025
66 checks passed
@vadimonus vadimonus deleted the redis-cluster-momoized-store-test-fix branch November 20, 2025 02:40
vadimonus added a commit to vadimonus/laravel-framework that referenced this pull request Nov 20, 2025
taylorotwell added a commit that referenced this pull request Nov 20, 2025
…tion (#57837)

* [12.x] mark certain tests skipped in RedisStoreTest

* [12.x] flushStaleEntries for PhpRedisCluster in RedisTagSet

* [12.x] unskip test for many (fixed in #57828)

* Update RedisTagSet.php

---------

Co-authored-by: Taylor Otwell <taylor@laravel.com>
taylorotwell added a commit to illuminate/cache that referenced this pull request Nov 20, 2025
…tion (#57837)

* [12.x] mark certain tests skipped in RedisStoreTest

* [12.x] flushStaleEntries for PhpRedisCluster in RedisTagSet

* [12.x] unskip test for many (fixed in laravel/framework#57828)

* Update RedisTagSet.php

---------

Co-authored-by: Taylor Otwell <taylor@laravel.com>
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