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:108–110 ·
view source on GitHub ↗
(key, value []byte)
Source
from the content-addressed store, hash-verified
106
}
107
108
func
(b *BigCache) Set(key, value []byte) error {
109
return
b.c.Set(string(key), value)
110
}
111
112
func
newBigCache(keysInWindow int) *BigCache {
113
cache, err := bigcache.NewBigCache(bigcache.Config{
Callers
1
newBigCache
Function · 0.95
Calls
1
Set
Method · 0.65
Tested by
no test coverage detected