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

Method Get

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

Source from the content-addressed store, hash-verified

345}
346
347func (c *BenchFreeCache) Get(key string) (interface{}, bool) {
348 value, err := c.cache.Get([]byte(key))
349 if err != nil {
350 return value, false
351 }
352 return value, true
353}
354
355func (c *BenchFreeCache) Set(key string, value interface{}) {
356 longKey := []byte(padString(key, 64))

Callers

nothing calls this directly

Calls 1

GetMethod · 0.65

Tested by

no test coverage detected