/**
  * Bootstrap the application services.
  *
  * @return void
  */
 public function boot()
 {
     Cache::extend('memcached', function ($app) {
         $servers = Config::get('cache.stores.memcached.servers');
         $prefix = Config::get('cache.prefix');
         $connector = new MemcachedConnector();
         return Cache::repository(new MemcachedStore($connector->connect($servers), $prefix));
     });
 }
 /**
  * Perform post-registration booting of services.
  *
  * @return void
  */
 public function boot()
 {
     Cache::extend('phpredis', function ($app) {
         return Cache::repository(new PHPRedisStore($app->make('phpredis'), $app->config['cache.prefix'], $app->config['cache.stores.phpredis.connection']));
     });
 }