title: How to troubleshoot memcache set method always fail issue?
body: <p>I have XAMPP 1.7.3 installed on Windows 7. The PHP version is 5.3.1. I have successfully installed memcache for win32 from <a href="http://www.splinedancer.com/memcached-win32" rel="nofollow noreferrer">http://www.splinedancer.com/memcached-win32</a>. </p>
  
  <p>I got PHP extension php_memcache.dll from <a href="http://downloads.php.net/pierre" rel="nofollow noreferrer">http://downloads.php.net/pierre</a>.</p>
  
  <p>Restarting apache and checking phpinfo() shows memcache is OK.</p>
  
  <p>When I test it with below PHP page. It always fail in set method.</p>
  
  <pre><code>&lt;?php
  $memcache = new Memcache;
  $memcache-&gt;connect('127.0.0.1', 11211) or die ("Could not connect");
  
  $version = $memcache-&gt;getVersion();
  echo "Server's version: ".$version." \n";
  
  $tmp_object = new stdClass;
  $tmp_object-&gt;str_attr = 'test';
  $tmp_object-&gt;int_attr = 123;
  
  $memcache-&gt;set('key', $tmp_object, false, 10) or die ("Failed to save data at the server");
  echo "Store data in the cache (data will expire in 10 seconds)\n";
  
  $get_result = $memcache-&gt;get('key');
  echo "Data from the cache: \n"
  ?&gt;
  </code></pre>
  
  <p>The set method always return false so it constantly output</p>
  
  <pre><code>Server's version: Failed to save data at the server
  </code></pre>
  
  <p>I'm stuck. I don't know which way to trouble shoot this issue.
  Anybody has any idea about possible direction?</p>
  
  <p>Thanks.</p>