MCPcopy
hub / github.com/CodisLabs/codis / Shutdown

Method Shutdown

pkg/utils/redis/client.go:111–118  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

109}
110
111func (c *Client) Shutdown() error {
112 _, err := c.Do("SHUTDOWN")
113 if err != nil {
114 c.Close()
115 return errors.Trace(err)
116 }
117 return nil
118}
119
120func (c *Client) Info() (map[string]string, error) {
121 text, err := redigo.String(c.Do("INFO"))

Callers 3

MaintainsMethod · 0.95
handleShutdownMethod · 0.45
handleShutdownMethod · 0.45

Calls 2

DoMethod · 0.95
CloseMethod · 0.95

Tested by

no test coverage detected