go-rejson
go-rejson copied to clipboard
Call a command inside a transaction/pipe
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()
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.