Skip to content

Commit 6d97175

Browse files
authored
Emit underlying store name in cache events when using failover (#57505)
1 parent ebcb746 commit 6d97175

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Illuminate/Cache/CacheManager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ protected function createFailoverDriver(array $config)
257257
$this,
258258
$this->app->make(DispatcherContract::class),
259259
$config['stores']
260-
));
260+
), ['events' => false, ...$config]);
261261
}
262262

263263
/**

src/Illuminate/Cache/FailoverStore.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,10 +211,10 @@ protected function attemptOnAllStores(string $method, array $arguments)
211211
/**
212212
* Get the cache store for the given store name.
213213
*
214-
* @return \Illuminate\Contracts\Cache\Store
214+
* @return \Illuminate\Contracts\Cache\Repository
215215
*/
216216
protected function store(string $store)
217217
{
218-
return $this->cache->store($store)->getStore();
218+
return $this->cache->store($store);
219219
}
220220
}

0 commit comments

Comments
 (0)