public function setUp() { $configuration = ['global.config' => ['cache' => ['memcached' => ['autoconnnect' => true, 'servers' => [['host' => '127.0.0.1', 'port' => 11211, 'weight' => 50]]]]]]; Config::$config = $configuration; $this->memcached = Cache::make('memcached', function ($memcached) { return $memcached; }); }
public function setUp() { $configuration = ['global.config' => ['cache' => ['redis' => ['connection' => 'default']]]]; Config::$config = $configuration; $this->redis = Cache::make('redis', function ($redis) { return $redis; }); }
public function setUp() { $this->apc = Cache::make('apc', function ($apc) { return $apc; }); }