refactor of the memcache host and port variable