support multi transaction

This commit is contained in:
hdt3213
2021-05-31 21:20:33 +08:00
parent 9d03314359
commit 67c385ee4a
50 changed files with 1919 additions and 1122 deletions

View File

@@ -5,9 +5,17 @@ type Connection interface {
Write([]byte) error
SetPassword(string)
GetPassword() string
// client should keep its subscribing channels
Subscribe(channel string)
UnSubscribe(channel string)
SubsCount() int
GetChannels() []string
// used for `Multi` command
InMultiState() bool
SetMultiState(bool)
GetQueuedCmdLine() [][][]byte
EnqueueCmd([][]byte)
ClearQueuedCmds()
}