public function registerCacheService()
    {
        $this->app->singleton('cache', function ($app) {
            return new Cache($app['config']);
        });

        $this->app->alias('cache', Cache::class);
    }
public function registerCacheService()
    {
        $this->app->singleton('cache', function ($app) {
            return new Cache($app['config']);
        });

        $this->app->alias('cache', Cache::class);
    }
public function registerCacheService ( ) { $ this -> app -> singleton ( 'cache' , function ( $ app ) { return new Cache ( $ app [ 'config' ] ) ; } ) ; $ this -> app -> alias ( 'cache' , Cache :: class ) ; }
Register cache service.

@return void
Register cache service .