Skip to content

Conversation

@samuelkees
Copy link

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant