blob: 2b0fcb7ab0fab3b276289c20a18c0a3767ff5c8d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
package commands
import (
"errors"
"net"
"redisClone/pkg/core"
)
func Multi(db core.RedisDB, session *ClientSession, conn net.Conn, execArgs []string) interface{} {
if session.InTransaction {
return errors.New("MULTI calls can not be nested")
}
session.InTransaction = true
session.Queue = make([][]string, 0)
return core.SimpleString("OK")
}
|