Automatically setting up memcached