コード例 #1
0
 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;
     });
 }
コード例 #2
0
 public function setUp()
 {
     $configuration = ['global.config' => ['cache' => ['redis' => ['connection' => 'default']]]];
     Config::$config = $configuration;
     $this->redis = Cache::make('redis', function ($redis) {
         return $redis;
     });
 }
コード例 #3
0
ファイル: ApcCacheTest.php プロジェクト: jhonbendar/framework
 public function setUp()
 {
     $this->apc = Cache::make('apc', function ($apc) {
         return $apc;
     });
 }