src/package/Services/Cache.php
protected function getCacheInstance()
    {
        if (!$this->cache) {
            $this->cache = app($this->config('root.cache.instance'));
        }

        return $this->cache;
    }
protected function getCacheInstance()
    {
        if (!$this->cache) {
            $this->cache = app($this->config('root.cache.instance'));
        }

        return $this->cache;
    }
protected function getCacheInstance ( ) { if ( ! $ this -> cache ) { $ this -> cache = app ( $ this -> config ( 'root.cache.instance' ) ) ; } return $ this -> cache ; }
Get the cache instance.

@throws \Exception

@return array|\Illuminate\Foundation\Application|mixed
Get the cache instance .