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

Call a command inside a transaction/pipe #41

Open
luizvnasc opened this issue Jan 30, 2020 · 1 comment
Open

Call a command inside a transaction/pipe #41

luizvnasc opened this issue Jan 30, 2020 · 1 comment

Comments

@luizvnasc
Copy link

Is there a way to use a rejson command inside a transaction or pipe?
Something like that:

tx := redisClient.TXPipeline()
tx.XAdd(&redis.XAddArgs{Stream: stream.Name, ID: "*", Values: map[string]interface{}{"msg": "New stream"}})
tx.JSONSet(streamInfoKey(stream.Name), ".", stream)
tx.Exec()
@Shivam010
Copy link
Collaborator

Currently, the go-rejson does not support transaction.
You can follow the issue: #36 as there is a proposal for the same in it.
You can share your thoughts and idea on it, we are open for PRs.

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

No branches or pull requests

2 participants