Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
33
type
Cache
interface
{
34
Get(string) (
interface
{}, bool)
35
Set(string,
interface
{})
36
Del(string)
37
Log() *policyLog
38
Close()
39
}
40
41
type
BenchOptimal
struct
{
42
capacity uint64
Callers
33
Get
Method · 0.65
Get
Method · 0.65
Get
Method · 0.65
Get
Method · 0.65
Get
Method · 0.65
runCacheBenchmark
Function · 0.65
Get
Method · 0.65
Set
Method · 0.65
Set
Method · 0.65
Set
Method · 0.65
newFastCache
Function · 0.65
Set
Method · 0.65
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
no test coverage detected