protected function registerCacheFactory()
    {
        $this->app->singleton('flysystem.cachefactory', function (Container $app) {
            $cache = $app['cache'];

            return new CacheFactory($cache);
        });

        $this->app->alias('flysystem.cachefactory', CacheFactory::class);
    }
protected function registerCacheFactory()
    {
        $this->app->singleton('flysystem.cachefactory', function (Container $app) {
            $cache = $app['cache'];

            return new CacheFactory($cache);
        });

        $this->app->alias('flysystem.cachefactory', CacheFactory::class);
    }
protected function registerCacheFactory ( ) { $ this -> app -> singleton ( 'flysystem.cachefactory' , function ( Container $ app ) { $ cache = $ app [ 'cache' ] ; return new CacheFactory ( $ cache ) ; } ) ; $ this -> app -> alias ( 'flysystem.cachefactory' , CacheFactory :: class ) ; }
Register the cache factory class.

@return void
Register the cache factory class .