Doctrine\ODM\CouchDB\Configuration::setMetadataCacheImpl PHP Method

setMetadataCacheImpl() public method

Sets the cache driver implementation that is used for metadata caching.
public setMetadataCacheImpl ( Doctrine\Common\Cache\Cache $cacheImpl )
$cacheImpl Doctrine\Common\Cache\Cache
    public function setMetadataCacheImpl(Cache $cacheImpl)
    {
        $this->attributes['metadataCacheImpl'] = $cacheImpl;
    }

Usage Example

 public function createConfiguration($metaDriver)
 {
     $config = new Configuration();
     $config->setProxyDir(\sys_get_temp_dir());
     $config->setAutoGenerateProxyClasses(true);
     $config->setMetadataDriverImpl($metaDriver);
     $config->setMetadataCacheImpl(new ArrayCache());
     $config->setLuceneHandlerName('_fti');
     return $config;
 }
All Usage Examples Of Doctrine\ODM\CouchDB\Configuration::setMetadataCacheImpl