Skip to content

Commit

Permalink
Cache prefix can be defined in the filesystem config
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonvarga committed Dec 5, 2017
1 parent 878f1cf commit 786c3ac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Illuminate/Filesystem/FilesystemManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,8 @@ protected function createCacheStore($config)
*/
protected function createRedisCacheStore(array $cacheConfig, array $storeConfig)
{
$key = sprintf('%s:flysystem', $storeConfig['prefix'] ?? $this->app['config']['cache.prefix']);
$key = $cacheConfig['prefix']
?? sprintf('%s:flysystem', $storeConfig['prefix'] ?? $this->app['config']['cache.prefix']);

return new PredisStore(
$this->app['redis.connection']->client(), $key, Arr::get($cacheConfig, 'expire')
Expand Down

0 comments on commit 786c3ac

Please sign in to comment.