Fix for Broken Memcache Cache Adapter

I enabled this for my app as a preliminary step towards writing out a Redis cache adapter but ended up with a broken application.  This pull request fixes the Memcache Cache Adapter so it works perfectly with the app.

Detailed comments are in the commit messages :-)