MCPcopy
hub / github.com/redis/go-redis / get

Method get

internal/hscan/structmap.go:23–31  ·  view source on GitHub ↗
(t reflect.Type)

Source from the content-addressed store, hash-verified

21}
22
23func (s *structMap) get(t reflect.Type) *structSpec {
24 if v, ok := s.m.Load(t); ok {
25 return v.(*structSpec)
26 }
27
28 spec := newStructSpec(t, "redis")
29 s.m.Store(t, spec)
30 return spec
31}
32
33//------------------------------------------------------------------------------
34

Callers 1

StructFunction · 0.45

Calls 2

newStructSpecFunction · 0.85
LoadMethod · 0.45

Tested by

no test coverage detected