consistent hash for memcache