1
0
mirror of https://github.com/redis/go-redis.git synced 2025-07-28 06:42:00 +03:00

Add more docs for Tx

This commit is contained in:
Vladimir Mihailenco
2018-07-12 15:57:03 +03:00
parent 5db3ab16e5
commit ab1a52f0c9
2 changed files with 10 additions and 3 deletions

View File

@ -31,6 +31,7 @@ type Pipeline struct {
closed bool
}
// Process queues the cmd for later execution.
func (c *Pipeline) Process(cmd Cmder) error {
c.mu.Lock()
c.cmds = append(c.cmds, cmd)