Redis.transaction

Execute commands in a MULTI/EXEC block.

@param all - (Default: false) - By default, only the results of a transaction are returned. If set to "true", the results of each queuing step is also returned.

class Redis
Response[]
transaction
(
string[] commands
,
bool all = false
)

Examples

transaction(["SADD shopping_cart Shirt", "INCR shopping_cart_ctr"])

Meta