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

Method GetRunId

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

Source from the content-addressed store, hash-verified

486}
487
488func (s *InfoCache) GetRunId(addr string) string {
489 return s.Get(addr)["run_id"]
490}
491
492func (s *InfoCache) getSlow(addr string) (map[string]string, error) {
493 c, err := NewClient(addr, s.Auth, s.Timeout)

Callers 2

trySwitchMasterMethod · 0.80
trySwitchGroupMasterMethod · 0.80

Calls 1

GetMethod · 0.95

Tested by

no test coverage detected