made memcached dependency optional