We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Similar to issue #2, can we have support for Watch?
I have code like:
txf := func(tx *redis.Tx) error { val, err := tx.Get(ctx, "mykey").Int64() err = tx.Set(ctx, "mykey", val + 1, 0).Err() } err := client.Watch(ctx, txf, "mykey")
If my test code uses mock.ExpectGet("mykey") then I get:
mock.ExpectGet("mykey")
parameters do not match, expectation '[get mykey]', but call to cmd '[watch mykey]'
I don't see anything in the code that will expect a WATCH. Is there a way to achieve this or does it need a patch?
Thank you.
The text was updated successfully, but these errors were encountered:
Fix go-redis#5: add support for WATCH
a5fa6f5
This adds support for client.Watch().
f956dbb
fix #5 support client.Watch
8f1a0fe
Signed-off-by: monkey <monkey92t@gmail.com>
No branches or pull requests
Similar to issue #2, can we have support for Watch?
I have code like:
If my test code uses
mock.ExpectGet("mykey")
then I get:I don't see anything in the code that will expect a WATCH. Is there a way to achieve this or does it need a patch?
Thank you.
The text was updated successfully, but these errors were encountered: