src/Fasim/Cache/simulate/Memcached.php
public function addServers($servers)
    {
        foreach ((array)$servers as $svr) {
            $host = array_shift($svr);

            $port = array_shift($svr);
            if (is_null($port)) {
                $port = 11211;
            }

            $weight = array_shift($svr);
            if (is_null($weight)) {
                $weight = 0;
            }

            $this->addServer($host, $port, $weight);
        }

        return true;
    }
public function addServers($servers)
    {
        foreach ((array)$servers as $svr) {
            $host = array_shift($svr);

            $port = array_shift($svr);
            if (is_null($port)) {
                $port = 11211;
            }

            $weight = array_shift($svr);
            if (is_null($weight)) {
                $weight = 0;
            }

            $this->addServer($host, $port, $weight);
        }

        return true;
    }
public function addServers ( $ servers ) { foreach ( ( array ) $ servers as $ svr ) { $ host = array_shift ( $ svr ) ; $ port = array_shift ( $ svr ) ; if ( is_null ( $ port ) ) { $ port = 11211 ; } $ weight = array_shift ( $ svr ) ; if ( is_null ( $ weight ) ) { $ weight = 0 ; } $ this -> addServer ( $ host , $ port , $ weight ) ; } return true ; }
Add multiple servers to the server pool

@param   array   $servers
@return  boolean
Add multiple servers to the server pool