Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When doing Transaction with redis.watch I do not have access to Do command #1745

Closed
Keithwachira opened this issue Apr 30, 2021 · 1 comment
Labels

Comments

@Keithwachira
Copy link

Keithwachira commented Apr 30, 2021

Issue tracker is used for reporting bugs and discussing new features. Please use
stackoverflow for supporting issues.

Expected Behavior

Redis.Watch(context.Background(), func(tx *redis.Tx) error { })

A user should be able to access the tx.Do command when doing transaction with watch.I need to work with redijsson module in a transaction but currently the Redis.Tx lacks a Do command that I can use to run custom redis commands.

I thought I could use TxPipelined but the issue with it is that when one command fails other commands get executed while what I want is for all commands to fail if one fails.

@github-actions
Copy link

This issue is marked stale. It will be closed in 30 days if it is not updated.

@github-actions github-actions bot added the Stale label Sep 22, 2023
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Dec 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant