Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RespServer ¶
type RespServer struct {
// contains filtered or unexported fields
}
func NewRespServer ¶
func NewRespServer(addr string, maxConn int, replicaAddrs []string) (*RespServer, error)
func (*RespServer) AddReplica ¶
func (rs *RespServer) AddReplica(addr string, maxConn int) error
AddReplica safely adds a new replica to the server
func (*RespServer) Close ¶
func (rs *RespServer) Close() error
func (*RespServer) Get ¶
func (rs *RespServer) Get(key string) (interface{}, error)
func (*RespServer) RemoveReplica ¶
func (rs *RespServer) RemoveReplica(addr string) error
RemoveReplica safely removes a replica from the server
Click to show internal directories.
Click to hide internal directories.