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

Method Info

pkg/utils/redis/client.go:421–432  ·  view source on GitHub ↗
(addr string)

Source from the content-addressed store, hash-verified

419}
420
421func (p *Pool) Info(addr string) (_ map[string]string, err error) {
422 c, err := p.GetClient(addr)
423 if err != nil {
424 return nil, err
425 }
426 defer p.PutClient(c, err)
427 m, err := c.Info()
428 if err != nil {
429 return nil, err
430 }
431 return m, nil
432}
433
434func (p *Pool) InfoFull(addr string) (_ map[string]string, err error) {
435 c, err := p.GetClient(addr)

Callers

nothing calls this directly

Calls 2

GetClientMethod · 0.95
PutClientMethod · 0.95

Tested by

no test coverage detected