public function init($config = [], $use)
    {
        $this->config = $config;
        $this->cache = $this->getCache($use);
        $this->app->addAlias($use, $config['drivers'][$use]['class']);
    }
public function init($config = [], $use)
    {
        $this->config = $config;
        $this->cache = $this->getCache($use);
        $this->app->addAlias($use, $config['drivers'][$use]['class']);
    }
public function init ( $ config = [ ] , $ use ) { $ this -> config = $ config ; $ this -> cache = $ this -> getCache ( $ use ) ; $ this -> app -> addAlias ( $ use , $ config [ 'drivers' ] [ $ use ] [ 'class' ] ) ; }
CacheProvider constructor.
@param array $config
@param $use
@throws \Exception
CacheProvider constructor .