yii\caching\MemCache::setServers PHP Method

setServers() public method

See also: http://php.net/manual/en/memcache.addserver.php
See also: http://php.net/manual/en/memcached.addserver.php
public setServers ( array $config )
$config array list of memcache or memcached server configurations. Each element must be an array with the following keys: host, port, persistent, weight, timeout, retryInterval, status.
    public function setServers($config)
    {
        foreach ($config as $c) {
            $this->_servers[] = new MemCacheServer($c);
        }
    }