Doctrine\Common\Persistence\Mapping\AbstractClassMetadataFactory::setCacheDriver PHP Method

setCacheDriver() public method

Sets the cache driver used by the factory to cache ClassMetadata instances.
public setCacheDriver ( Doctrine\Common\Cache\Cache $cacheDriver = null ) : void
$cacheDriver Doctrine\Common\Cache\Cache
return void
    public function setCacheDriver(Cache $cacheDriver = null)
    {
        $this->cacheDriver = $cacheDriver;
    }