title: Using memcache inside Google Compute Engine with PHP
body: <p>I am trying to test using App Engine's Memcache with our servers running under Compute Engine. Currently we just have a couple VM instances which run Memcache where we call:</p>
  
  <pre><code>$memcache-&gt;addServer('memcache', 11211);
  </code></pre>
  
  <p>to reference each server. Looking at Google's sample code, it doesn't mention anything about what server we should call. I tried to test the below code from their document but it errors on creating the object. I understand that I might have to include a class, but it didn't mention anything in the document or what server to call. Can anyone help?</p>
  
  <pre class="lang-php prettyprint-override"><code>&lt;?php
  
  header('Content-Type: text/plain');
  
  echo "Setting Value\n";
  $memcache = new Memcached;
  
  echo "Get who value&lt;br&gt;";
  $who = $memcache-&gt;get('who');
  
  echo 'Previously incremented by ' . $who . "\n";
  $memcache-&gt;set('who', 'PHP');
  
  $count = $memcache-&gt;increment('count', 1, 0);
  echo 'Count incremented by PHP = ' .  $count . "\n";
  </code></pre>