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

Method Get

cachebench/ristretto/cache.go:300–306  ·  view source on GitHub ↗
(key string)

Source from the content-addressed store, hash-verified

298}
299
300func (c *BenchFastCache) Get(key string) (interface{}, bool) {
301 value := c.cache.Get(nil, []byte(key))
302 if len(value) > 0 {
303 return value, true
304 }
305 return value, false
306}
307
308func (c *BenchFastCache) Set(key string, value interface{}) {
309 longKey := []byte(padString(key, 64))

Callers

nothing calls this directly

Calls 1

GetMethod · 0.65

Tested by

no test coverage detected