public function onAllServer($strict = true)
    {
        foreach ($this->getServerConfig() as $idServer => $config) {
            if ($redis = $this->getRedisFromServerConfig($idServer)) {
                $this->selectedRedis[$idServer] = $redis;
            } else {
                if ($strict) {
                    throw new Exception('cant connect to redis '.$idServer);
                }
            }
        }

        $this->multiRedis = true;

        return $this;
    }
public function onAllServer($strict = true)
    {
        foreach ($this->getServerConfig() as $idServer => $config) {
            if ($redis = $this->getRedisFromServerConfig($idServer)) {
                $this->selectedRedis[$idServer] = $redis;
            } else {
                if ($strict) {
                    throw new Exception('cant connect to redis '.$idServer);
                }
            }
        }

        $this->multiRedis = true;

        return $this;
    }
public function onAllServer ( $ strict = true ) { foreach ( $ this -> getServerConfig ( ) as $ idServer => $ config ) { if ( $ redis = $ this -> getRedisFromServerConfig ( $ idServer ) ) { $ this -> selectedRedis [ $ idServer ] = $ redis ; } else { if ( $ strict ) { throw new Exception ( 'cant connect to redis ' . $ idServer ) ; } } } $ this -> multiRedis = true ; return $ this ; }
select all the servers

@param bool $strict

@throws Exception
@return $this
select all the servers