title: PHP memcache - check if any server is available in pool?
body: <p>I have the following code:</p>
  
  <pre><code>$cluster['local'] = array('host' =&gt; '192.168.1.1', 'port' =&gt; '11211', 'weight' =&gt; 50);
  $cluster['local2'] = array('host' =&gt; '192.168.1.2', 'port' =&gt; '11211', 'weight' =&gt; 50);
  
  $this-&gt;memcache = new Memcache;
  
  foreach ($this-&gt;cluster() as $cluster) {
      $this-&gt;memcache-&gt;addServer($cluster['host'], $cluster['port'], $this-&gt;persistent, $cluster['weight'], 10, 10, TRUE , 'failure' );
  }
  </code></pre>
  
  <p>I would like to make a function that checks if any of my servers in my memcache Pool is available. How could this be done?</p>