-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Add example script showing how to watch a key, run multiple commands as a transaction and catch any WatchError that occurs. #2280
Comments
I would like to work on this. @simonprickett @SuzeShardlow can you assign it to me? |
@rowantrollope I've assigned this to you, looking forward to seeing your PR in the next couple of days. Have fun and please check out our guidelines: |
Hi @rowantrollope, how are you doing with this? :) |
This issue is available to work on. |
Hello, I would love to work on this. @SuzeShardlow @simonprickett |
Hi @sailingwithsandeep, I've assigned this to you :) we look forward to receiving your PR in the next couple of days. Please check out our guidelines and have fun! |
Add an example script that shows how to watch a key and perform multiple commands on it in a transaction, catching any
WatchError
that occurs if the key changes.Your example can be based on the code example here: https://github.com/redis/node-redis/blob/master/docs/isolated-execution.md, the best example to implement would be a check and set operation as described here https://redis.io/docs/manual/transactions/#cas
Name your file
transaction-with-watch.js
. Pay attention to the guidelines for adding an example to ensure that your contribution can be merged.This is part of our participation in Hacktoberfest 2022. Learn how to complete this issue here: https://redis.io/community/hacktoberfest/
Need help or want to talk to us? Join us on Discord where we have a dedicated Hacktoberfest channel: https://discord.gg/ueQwKUh5Z3
If you're interested in taking this issue on, please mention @simonprickett and @SuzeShardlow in the comments and ask to be assigned.
The text was updated successfully, but these errors were encountered: