code: def hashi(self, key, replica=0):
          
          dh = self._listbytes(md5(str(key).encode('utf-8')).digest())
          rd = replica * 4
          return (
              (dh[3 + rd] << 24) | (dh[2 + rd] << 16) |
              (dh[1 + rd] << 8) | dh[0 + rd])
docs: Returns a ketama compatible hash from the given key.