Install memcache extension before composer setup.
Maybe this will help composer to detect memcache.