MCPcopy Index your code
hub / github.com/CodisLabs/codis / Send

Method Send

pkg/utils/redis/client.go:68–74  ·  view source on GitHub ↗
(cmd string, args ...interface{})

Source from the content-addressed store, hash-verified

66}
67
68func (c *Client) Send(cmd string, args ...interface{}) error {
69 if err := c.conn.Send(cmd, args...); err != nil {
70 c.Close()
71 return errors.Trace(err)
72 }
73 return nil
74}
75
76func (c *Client) Flush() error {
77 if err := c.conn.Flush(); err != nil {

Callers 6

SetMasterMethod · 0.95
subscribeCommandMethod · 0.80
existsCommandMethod · 0.80
slavesCommandMethod · 0.80
monitorGroupsCommandMethod · 0.80
removeCommandMethod · 0.80

Calls 1

CloseMethod · 0.95

Tested by

no test coverage detected