Helper to evaluate a Redis MULTI statement. If an error occurs then, DISCARD is called and the transaction is cancelled. Otherwise EXEC is called and the transaction is processed.

redis_multi(con, expr)

Arguments

con

A Redis connection object

expr

An expression to evaluate