示例#1
0
 public function __construct(Memcache $memcached)
 {
     parent::__construct(new \Doctrine\Common\Cache\MemcacheCache());
     $this->provider->setMemcache($memcached);
 }
示例#2
0
 public function __construct(Client $client)
 {
     parent::__construct(new \Doctrine\Common\Cache\PredisCache($client));
 }
示例#3
0
 public function __construct(Bucket $bucket)
 {
     parent::__construct(new \Doctrine\Common\Cache\RiakCache($bucket));
 }
示例#4
0
 public function __construct()
 {
     parent::__construct(new \Doctrine\Common\Cache\CouchbaseCache());
 }
示例#5
0
 public function __construct(SQLite3 $sqlite, $table)
 {
     parent::__construct(new \Doctrine\Common\Cache\SQLite3Cache($sqlite, $table));
 }
示例#6
0
 public function __construct(MongoCollection $collection)
 {
     parent::__construct(new \Doctrine\Common\Cache\MongoDBCache($collection));
 }