{"action":"closed","issue":{"url":"https://api.github.com/repos/symfony/symfony/issues/5682","labels_url":"https://api.github.com/repos/symfony/symfony/issues/5682/labels{/name}","comments_url":"https://api.github.com/repos/symfony/symfony/issues/5682/comments","events_url":"https://api.github.com/repos/symfony/symfony/issues/5682/events","html_url":"https://github.com/symfony/symfony/issues/5682","id":7392664,"number":5682,"title":"memcache cluster support in doctrine bridge","user":{"login":"dchi","id":504003,"avatar_url":"https://avatars.githubusercontent.com/u/504003?v=3","gravatar_id":"","url":"https://api.github.com/users/dchi","html_url":"https://github.com/dchi","followers_url":"https://api.github.com/users/dchi/followers","following_url":"https://api.github.com/users/dchi/following{/other_user}","gists_url":"https://api.github.com/users/dchi/gists{/gist_id}","starred_url":"https://api.github.com/users/dchi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dchi/subscriptions","organizations_url":"https://api.github.com/users/dchi/orgs","repos_url":"https://api.github.com/users/dchi/repos","events_url":"https://api.github.com/users/dchi/events{/privacy}","received_events_url":"https://api.github.com/users/dchi/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/symfony/symfony/labels/Doctrine","name":"Doctrine","color":"DDDDDD"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2012-10-05T23:45:10Z","updated_at":"2015-10-05T10:39:10Z","closed_at":"2015-10-05T10:39:10Z","body":"We are working w/ symfony 2.1 and attempting to use the memcached implementation for doctrine caching. Unfortunately, it seems that we can only set one server for memcached. \r\n\r\nI see the following code in [AbstractDoctrineExtension.php](http://github.com/symfony/symfony/blob/master/src/Symfony/Bridge/Doctrine/DependencyInjection/AbstractDoctrineExtension.php)\r\n\r\n```php\r\n$memcachedHost = !empty($cacheDriver['host']) ? $cacheDriver['host'] : '%'.$this->getObjectManagerElementName('cache.memcached_host').'%';\r\n$memcachedPort = !empty($cacheDriver['port']) ? $cacheDriver['port'] : '%'.$this->getObjectManagerElementName('cache.memcached_port').'%';\r\n$cacheDef = new Definition($memcachedClass);\r\n$memcachedInstance = new Definition($memcachedInstanceClass);\r\n$memcachedInstance->addMethodCall('addServer', array(\r\n                    $memcachedHost, $memcachedPort\r\n                ));\r\n```\r\n\r\nIt seems that the extension only only reads one host and port. Am I reading the code wrong or missing another area to setup memcached for doctrine? "}}