make memcached optional