guilhermeblanco/ZendFramework1-Doctrine2 — Issue #26: Doctrine/Container doesn't setup memcached 
Author: dorongutman
Created: 2012-02-22 14:35:46+00:00
State: open

method `startCacheInstance` in `Doctrine/Container.php` only setup MemcacheCache and not MemcachedCache:

if (method_exists($adapter, 'initialize')) {
$adapter->initialize($config);
} else if ($adapter instanceof \Doctrine\Common\Cache\MemcacheCache) {
// Prevent stupid PHP error of missing extension (if other driver is being used)
$memcacheClassName = 'Memcache';
$memcache = new $memcacheClassName();

// Default server configuration
$defaultServer = array(
'host' => 'localhost',
'port' => 11211,
'persistent' => true,
'weight' => 1,
'timeout' => 1,
'retryInterval' => 15,
'status' => true
);

if (isset($config['options']['servers'])) {
foreach ($config['options']['servers'] as $server) {
$server = array_replace_recursive($defaultServer, $server);

$memcache->addServer(
$server['host'],
$server['port'],
$server['persistent'],
$server['weight'],
$server['timeout'],
$server['retryInterval'],
$server['status']
);
}
}

$adapter->setMemcache($memcache);
}