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

Interface Cache

cachebench/ristretto/cache.go:33–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31)
32
33type Cache interface {
34 Get(string) (interface{}, bool)
35 Set(string, interface{})
36 Del(string)
37 Log() *policyLog
38 Close()
39}
40
41type BenchOptimal struct {
42 capacity uint64

Callers 33

GetMethod · 0.65
GetMethod · 0.65
GetMethod · 0.65
GetMethod · 0.65
GetMethod · 0.65
runCacheBenchmarkFunction · 0.65
GetMethod · 0.65
SetMethod · 0.65
SetMethod · 0.65
SetMethod · 0.65
newFastCacheFunction · 0.65
SetMethod · 0.65

Implementers 7

BenchOptimalcachebench/ristretto/cache.go
BenchRistrettocachebench/ristretto/cache.go
BenchBaseMutexcachebench/ristretto/cache.go
BenchBigCachecachebench/ristretto/cache.go
BenchFastCachecachebench/ristretto/cache.go
BenchFreeCachecachebench/ristretto/cache.go
BenchGoburrowcachebench/ristretto/cache.go

Calls

no outgoing calls

Tested by

no test coverage detected