MCPcopy
hub / github.com/minio/minio-go / load

Method load

pkg/kvcache/cache.go:43–50  ·  view source on GitHub ↗
(key K)

Source from the content-addressed store, hash-verified

41}
42
43func (r *Cache[K, V]) load(key K) (V, bool) {
44 value, ok := r.m.Load(key)
45 if !ok {
46 var zero V
47 return zero, false
48 }
49 return value.(V), true
50}
51
52func (r *Cache[K, V]) store(key K, value V) {
53 r.m.Store(key, value)

Callers 1

GetMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected