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

Struct RistrettoCache

cachebench/cache_bench_test.go:261–263  ·  view source on GitHub ↗

======================================================================== Ristretto ========================================================================

Source from the content-addressed store, hash-verified

259//========================================================================
260
261type RistrettoCache struct {
262 c *ristretto.Cache
263}
264
265func (r *RistrettoCache) Get(key []byte) ([]byte, error) {
266 v, ok := r.c.Get(key)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected