after spending some time trying to setup Memcached on MAMP I can came into a bit of a pickle…
On my php info file it states memcached and displays the relevant information:

In order to learn and use Memcached I was using the following tutorial:
http://net.tutsplus.com/tutorials/php/faster-php-mysql-websites-in-minutes/?search_index=1
This is where I encountered my first issue, this being connecting to the Cache Server: by using what they had stated, did not seem to work.
define('MEMCACHED_HOST', '127.0.0.1');
define('MEMCACHED_PORT', '11211');
$memcache = new Memcache;
$cacheAvailable = $memcache->connect(MEMCACHED_HOST, MEMCACHED_PORT);
I tried changing 127.0.0.1 to localhost, this did not work. My first point of call was to change memcache to memcached… This still did not work.
Therefore I just want to clear up how to connect and test a connection has been made with Memcached. If there is in fact a different connection between Memcache and Memcached? Or maybe I have set something up wrong? Any advice or guidance is appreciated 🙂
I figured out the reason as to why I could not connect to Memcached and thought I would post the answer just incase anyone had the same issue I had.
To solution was to type the following in Terminal:
As I figured out it seems memcached effectively needs to be switched on. The above code did that. Although every-time your restart your machine you will have to do what I just stated. Im still looking for a answer that auto starts memcached. If i come across it I shall update this article.