mirror of
https://github.com/HDT3213/godis.git
synced 2025-10-05 08:46:56 +08:00
support multi transaction
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
Reference in New Issue
Block a user