redux (version 1.1.0)

redis_multi: Helper for Redis MULTI

Description

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.

Usage

redis_multi(con, expr)

Arguments

con

A Redis connection object

expr

An expression to evaluate