reddish icon indicating copy to clipboard operation
reddish copied to clipboard

add MultiExec.add(*Commands)

Open samuelkees opened this issue 4 years ago • 0 comments

Adds add to MultiExec to add Commands.

use:


from reddish.trio import MultiExec, Command

tx = MultiExec(
    Command('ECHO {}', 'foo'),
    Command('ECHO {}', 'bar')
)
# ... same code hire 

tx.add(
    Command('ECHO {}', 'baz'),
    Command('ECHO {}', 'qux')
)
foo, bar, baz, qux = await redis.execute(tx)

samuelkees avatar Jan 06 '22 10:01 samuelkees