Skip to content

Call a command inside a transaction/pipe #41

@luizvnasc

Description

@luizvnasc

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()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions