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:40–40 ·
view source on GitHub ↗
(key []byte, value []byte)
Source
from the content-addressed store, hash-verified
38
type
Cache
interface
{
39
Get(key []byte) ([]byte, error)
40
Set(key []byte, value []byte) error
41
}
42
43
const
(
Callers
1
newFreeCache
Function · 0.95
Implementers
7
BenchOptimal
cachebench/ristretto/cache.go
BenchRistretto
cachebench/ristretto/cache.go
BenchBaseMutex
cachebench/ristretto/cache.go
BenchBigCache
cachebench/ristretto/cache.go
BenchFastCache
cachebench/ristretto/cache.go
BenchFreeCache
cachebench/ristretto/cache.go
BenchGoburrow
cachebench/ristretto/cache.go
Calls
no outgoing calls
Tested by
1
newFreeCache
Function · 0.76