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

Method Set

cachebench/cache_bench_test.go:185–187  ·  view source on GitHub ↗
(key, value []byte)

Source from the content-addressed store, hash-verified

183}
184
185func (f *FreeCache) Set(key, value []byte) error {
186 return f.c.Set(key, value, 0)
187}
188
189func newFreeCache(keysInWindow int) *FreeCache {
190 cache := freecache.NewCache(keysInWindow * maxKeyLength)

Callers

nothing calls this directly

Calls 1

SetMethod · 0.65

Tested by

no test coverage detected