I've recently needed to work with memcached on my MAMP setup. Normally for something like this, I'd consider setting up a Vagrant box and get the whole environment mirrored, but I wanted to see how hard it would be to make it work this way. Generally, it's not very difficult, but there are a couple snags you might run into.