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

Method Get

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

Source from the content-addressed store, hash-verified

477}
478
479func (s *InfoCache) Get(addr string) map[string]string {
480 info := s.load(addr)
481 if info != nil {
482 return info
483 }
484 info, _ = s.getSlow(addr)
485 return s.store(addr, info)
486}
487
488func (s *InfoCache) GetRunId(addr string) string {
489 return s.Get(addr)["run_id"]

Callers 7

GetRunIdMethod · 0.95
ReadMethod · 0.45
ListMethod · 0.45
WatchInOrderMethod · 0.45
ReadMethod · 0.45
newApiServerFunction · 0.45
mainFunction · 0.45

Calls 3

loadMethod · 0.95
getSlowMethod · 0.95
storeMethod · 0.95

Tested by

no test coverage detected