Only import memcache if it's needed.