should I check error each step on a redis multi transaction? if some error happen, was it mean, the release command will also return error?
eg. can I :
conn.Do("multi")
conn.Do("set", "mm", "xx")
reply, err := conn.Do("exec")
if err != nil {
....
}
or, should i :
_, err := conn.Do("multi")
if err != nil {
....
return
}
_, err := conn.Do("set", "mm", "xx")
if err != nil {
....
return
}
reply, err := conn.Do("exec")
if err != nil {
....
return
}