MCPcopy Create free account
hub / github.com/dgraph-io/dgraph-benchmarks / GroupCache

Struct GroupCache

cachebench/cache_bench_test.go:210–213  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

208)
209
210type GroupCache struct {
211 shards [256]*lru.Cache
212 locks [256]sync.Mutex
213}
214
215func (g *GroupCache) Get(key []byte) ([]byte, error) {
216 hashVal := xxhash.Sum64(key)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected