for i in range(Client._SERVER_RETRIES):
    server = self.buckets[serverhash % len(self.buckets)]
if server.connect():
    return server, key
serverhash = serverHashFunction(str(serverhash) + str(i))
return None, None
How does django handle multiple memcached servers?