Skip to content

Commit c798cde

Browse files
hayase_yasuhiroclaude
andcommitted
Pass flexible_cluster_mode config to Repository in CacheManager
Repository::flexible() references the flexible_cluster_mode config, but CacheManager::repository() was using Arr::only($config, ['store']), which prevented flexible_cluster_mode from being passed to Repository. Changes: - Modified Arr::only($config, ['store', 'flexible_cluster_mode']) - This ensures flexible_cluster_mode config is properly passed to Repository Test results: - Local: 75 tests, 302 assertions all passed - Valkey Serverless: 3/3 patterns all succeeded - phpredis + default: SUCCESS - predis + default: SUCCESS - predis + clusters: SUCCESS 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 1eadeb1 commit c798cde

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Illuminate/Cache/CacheManager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ protected function getSession()
369369
*/
370370
public function repository(Store $store, array $config = [])
371371
{
372-
return tap(new Repository($store, Arr::only($config, ['store'])), function ($repository) use ($config) {
372+
return tap(new Repository($store, Arr::only($config, ['store', 'flexible_cluster_mode'])), function ($repository) use ($config) {
373373
if ($config['events'] ?? true) {
374374
$this->setEventDispatcher($repository);
375375
}

0 commit comments

Comments
 (0)