title: How to does Elasticache syntax relate to Memcache syntax (using PHP)?
body: <p>After installing memcache on my EC2 Linux instance using this:</p>
  
  <pre><code>:~$ sudo apt-get install memcached php5-memcache
  </code></pre>
  
  <p>I can immediately do this:</p>
  
  <pre><code>$memcache = new Memcache;
  $memcache-&gt;connect('localhost', 11211);
  
  $array_result=$this-&gt;db-&gt;query("SELECT * where ...."); // some DB query
  $memcache-&gt;set('my_items', $array_result, false, 60*60*24);    
  </code></pre>
  
  <p>and later can access this cached array like this: </p>
  
  <pre><code>$memcache = new Memcache;
  $memcache-&gt;connect('localhost', 11211);
  $my_items=$memcache-&gt;get('my_items');
  var_dump($my_items);
  </code></pre>
  
  <p>My question is what is the Elasticache syntax that correlates with memcache's <code>connect()</code>, <code>set()</code>, and <code>get()</code> commands? I'm totally confused by the <a href="http://docs.amazonwebservices.com/AWSSDKforPHP/latest/#i=AmazonElastiCache" rel="nofollow">Elasticache part of the AWS PHP SDK</a>.</p>