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

Method Do

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

Source from the content-addressed store, hash-verified

52}
53
54func (c *Client) Do(cmd string, args ...interface{}) (interface{}, error) {
55 r, err := c.conn.Do(cmd, args...)
56 if err != nil {
57 c.Close()
58 return nil, errors.Trace(err)
59 }
60 c.LastUse = time.Now()
61
62 if err, ok := r.(redigo.Error); ok {
63 return nil, errors.Trace(err)
64 }
65 return r, nil
66}
67
68func (c *Client) Send(cmd string, args ...interface{}) error {
69 if err := c.conn.Send(cmd, args...); err != nil {

Callers 15

SelectMethod · 0.95
ShutdownMethod · 0.95
InfoMethod · 0.95
InfoKeySpaceMethod · 0.95
InfoFullMethod · 0.95
SetMasterMethod · 0.95
MigrateSlotMethod · 0.95
MigrateSlotAsyncMethod · 0.95
SlotsInfoMethod · 0.95
RoleMethod · 0.95
groupfetchMethod · 0.45
DelSlotMethod · 0.45

Calls 1

CloseMethod · 0.95

Tested by

no test coverage detected