title: how to enable memcached in wamp in windows?
body: <p>Iam running WAMP server and just enabled php_memcache extension and have tried the code  </p>
  
  <pre><code>&lt;?php
      $memcache = new Memcache;
      $memcache-&gt;connect('localhost', 11211) or die ("Could not connect");
  
      $version = $memcache-&gt;getVersion();
      echo "Server's version: ".$version."&lt;br/&gt;\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)&lt;br/&gt;\n";
  
      $get_result = $memcache-&gt;get('key');
      echo "Data from the cache:&lt;br/&gt;\n";
  
      var_dump($get_result);
  ?&gt;
  </code></pre>