Files
redis-go/interface/redis/conn.go
finley bf7f628810 raft cluster
wip: raft does not care about migrating

wip: optimize code

wip: raft election

wip

wip: fix raft leader missing log entries

wip

fix a dead lock

batch set slot route

wip: raft persist

wip

refactor cluster suite

remove relay

rename relay2

refactor: allow customizing client factory

test raft

refactor re-balance

avoid errors caused by inconsistent status on follower nodes during raft commits

test raft election
2023-06-10 22:48:24 +08:00

38 lines
659 B
Go

package redis
// Connection represents a connection with redis client
type Connection interface {
Write([]byte) (int, error)
Close() error
RemoteAddr() string
SetPassword(string)
GetPassword() string
// client should keep its subscribing channels
Subscribe(channel string)
UnSubscribe(channel string)
SubsCount() int
GetChannels() []string
InMultiState() bool
SetMultiState(bool)
GetQueuedCmdLine() [][][]byte
EnqueueCmd([][]byte)
ClearQueuedCmds()
GetWatching() map[string]uint32
AddTxError(err error)
GetTxErrors() []error
GetDBIndex() int
SelectDB(int)
SetSlave()
IsSlave() bool
SetMaster()
IsMaster() bool
Name() string
}