mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 20:14:03 +00:00
Remove redundant CacheManager extend() call
This commit is contained in:
parent
30d73d2694
commit
42381d00e2
1 changed files with 0 additions and 12 deletions
|
|
@ -181,18 +181,6 @@ test('stores other than the default one are not prefixed', function () {
|
||||||
config(['cache.default' => 'redis']);
|
config(['cache.default' => 'redis']);
|
||||||
config(['cache.stores.redis2' => config('cache.stores.redis')]);
|
config(['cache.stores.redis2' => config('cache.stores.redis')]);
|
||||||
|
|
||||||
app(CacheManager::class)->extend('redis2', function($config) {
|
|
||||||
$redis = $this->app['redis'];
|
|
||||||
|
|
||||||
$connection = $config['connection'] ?? 'default';
|
|
||||||
|
|
||||||
$store = new RedisStore($redis, $this->getPrefix($config), $connection);
|
|
||||||
|
|
||||||
return $this->repository(
|
|
||||||
$store->setLockConnection($config['lock_connection'] ?? $connection)
|
|
||||||
);
|
|
||||||
});
|
|
||||||
|
|
||||||
$this->app->singleton(CacheManagerService::class);
|
$this->app->singleton(CacheManagerService::class);
|
||||||
|
|
||||||
app()->make(CacheManagerService::class)->handle();
|
app()->make(CacheManagerService::class)->handle();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue