コード例 #1
0
ファイル: MemcacheCache.php プロジェクト: kuzmichus/cache
 public function __construct(Memcache $memcached)
 {
     parent::__construct(new \Doctrine\Common\Cache\MemcacheCache());
     $this->provider->setMemcache($memcached);
 }
コード例 #2
0
ファイル: PredisCache.php プロジェクト: kuzmichus/cache
 public function __construct(Client $client)
 {
     parent::__construct(new \Doctrine\Common\Cache\PredisCache($client));
 }
コード例 #3
0
ファイル: RiakCache.php プロジェクト: kuzmichus/cache
 public function __construct(Bucket $bucket)
 {
     parent::__construct(new \Doctrine\Common\Cache\RiakCache($bucket));
 }
コード例 #4
0
ファイル: CouchbaseCache.php プロジェクト: kuzmichus/cache
 public function __construct()
 {
     parent::__construct(new \Doctrine\Common\Cache\CouchbaseCache());
 }
コード例 #5
0
ファイル: SQLite3Cache.php プロジェクト: kuzmichus/cache
 public function __construct(SQLite3 $sqlite, $table)
 {
     parent::__construct(new \Doctrine\Common\Cache\SQLite3Cache($sqlite, $table));
 }
コード例 #6
0
ファイル: MongoDBCache.php プロジェクト: kuzmichus/cache
 public function __construct(MongoCollection $collection)
 {
     parent::__construct(new \Doctrine\Common\Cache\MongoDBCache($collection));
 }