Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
185
func
(f *FreeCache) Set(key, value []byte) error {
186
return
f.c.Set(key, value, 0)
187
}
188
189
func
newFreeCache(keysInWindow int) *FreeCache {
190
cache := freecache.NewCache(keysInWindow * maxKeyLength)
Callers
nothing calls this directly
Calls
1
Set
Method · 0.65
Tested by
no test coverage detected