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

Method Del

extern/deprecated/redis-test/utils.go:246–262  ·  view source on GitHub ↗
(c *Conn, exists bool)

Source from the content-addressed store, hash-verified

244}
245
246func (u *Unit) Del(c *Conn, exists bool) {
247 var rsp interface{}
248 defer func() {
249 if x := recover(); x != nil {
250 Panic("del: c = %s, key = '%s', error = '%s', rsp = %v", c.Addr(), u.key, x, rsp)
251 }
252 }()
253 var err error
254 if rsp, err = c.Do("del", u.key); err != nil {
255 panic(err)
256 }
257 v := c.Int(rsp)
258 if exists && v != 1 {
259 panic("not exists")
260 }
261 u.val = nil
262}
263
264func (u *Unit) Mgrt(c, dst *Conn, exists bool) {
265 var rsp interface{}

Callers 14

playerMethod · 0.95
mainMethod · 0.95
mainMethod · 0.95
mainMethod · 0.45
playerMethod · 0.45
playerMethod · 0.45
playerMethod · 0.45
playerMethod · 0.45
playerMethod · 0.45
playerMethod · 0.45
mainMethod · 0.45
playerMethod · 0.45

Calls 4

PanicFunction · 0.70
AddrMethod · 0.45
DoMethod · 0.45
IntMethod · 0.45

Tested by

no test coverage detected