varex=newRedisCommandException($"This operation would involve too many arguments ({required} vs the redis limit of {PhysicalConnection.REDIS_MAX_ARGS}): {s}");
internalconstintREDIS_MAX_ARGS=1024*1024;// there is a <= 1024*1024 max constraint inside redis itself: https://github.com/antirez/redis/blob/6c60526db91e23fb2d666fc52facc9a11780a2a3/src/networking.c#L1024
if(arguments>=REDIS_MAX_ARGS)// using >= here because we will be adding 1 for the command itself (which is an arg for the purposes of the multi-bulk protocol)
internalconstintREDIS_MAX_ARGS=1024*1024;// there is a <= 1024*1024 max constraint inside redis itself: https://github.com/antirez/redis/blob/6c60526db91e23fb2d666fc52facc9a11780a2a3/src/networking.c#L1024
if(arguments>=REDIS_MAX_ARGS)// using >= here because we will be adding 1 for the command itself (which is an arg for the purposes of the multi-bulk protocol)
err=$"Key has MOVED from Endpoint {endpoint} and hashslot {hashSlot} but CommandFlags.NoRedirect was specified - redirect not followed. ";
}
else
{
err=$"Endpoint {endpoint} serving hashslot {hashSlot} is not reachable at this point of time. Please check connectTimeout value. If it is low, try increasing it to give the ConnectionMultiplexer a chance to recover from the network disconnect. ";
err=$"Key has MOVED from Endpoint {endpoint} and hashslot {hashSlot} but CommandFlags.NoRedirect was specified - redirect not followed. ";
}
else
{
err=$"Endpoint {endpoint} serving hashslot {hashSlot} is not reachable at this point of time. Please check connectTimeout value. If it is low, try increasing it to give the ConnectionMultiplexer a chance to recover from the network disconnect. ";
connection.RecordConnectionFailed(ConnectionFailureType.AuthenticationFailure,newException(result.ToString()+" Verify if the Redis password provided is correct."));
connection.RecordConnectionFailed(ConnectionFailureType.AuthenticationFailure,newException(result.ToString()+" Verify if the Redis password provided is correct."));
thrownewInvalidOperationException("BeginConnect failed with NotImplementedException; consider using IP endpoints, or enable ResolveDns in the configuration",ex);
thrownewInvalidOperationException("BeginConnect failed with NotImplementedException; consider using IP endpoints, or enable ResolveDns in the configuration",ex);