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

Method load

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

Source from the content-addressed store, hash-verified

454}
455
456func (s *InfoCache) load(addr string) map[string]string {
457 s.mu.Lock()
458 defer s.mu.Unlock()
459 if s.data != nil {
460 return s.data[addr]
461 }
462 return nil
463}
464
465func (s *InfoCache) store(addr string, info map[string]string) map[string]string {
466 s.mu.Lock()

Callers 1

GetMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected