added heroku code for memcached