src/Factory/MemcacheFactory.php
public function getAdapter(array $config)
    {
        $client = new Memcache();
        $client->connect($config['host'], $config['port']);

        foreach ($config['redundant_servers'] as $server) {
            if (!isset($server['host'])) {
                continue;
            }
            $port = $config['port'];
            if (isset($server['port'])) {
                $port = $server['port'];
            }
            $client->addserver($server['host'], $port);
        }

        return new MemcacheCachePool($client);
    }
public function getAdapter(array $config)
    {
        $client = new Memcache();
        $client->connect($config['host'], $config['port']);

        foreach ($config['redundant_servers'] as $server) {
            if (!isset($server['host'])) {
                continue;
            }
            $port = $config['port'];
            if (isset($server['port'])) {
                $port = $server['port'];
            }
            $client->addserver($server['host'], $port);
        }

        return new MemcacheCachePool($client);
    }
{@inheritdoc}