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:153–156 ·
view source on GitHub ↗
(key, value []byte)
Source
from the content-addressed store, hash-verified
151
}
152
153
func
(b *FastCache) Set(key, value []byte) error {
154
b.c.Set(key, value)
155
return
nil
156
}
157
158
func
newFastCache(keysInWindow int) *FastCache {
159
cache := fastcache.New(keysInWindow * maxKeyLength)
Callers
nothing calls this directly
Calls
1
Set
Method · 0.65
Tested by
no test coverage detected