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

Struct BenchFreeCache

cachebench/ristretto/cache.go:332–336  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

330func (c *BenchFastCache) Close() {}
331
332type BenchFreeCache struct {
333 cache *freecache.Cache
334 log *policyLog
335 track bool
336}
337
338func NewBenchFreeCache(capacity int, track bool) Cache {
339 // NOTE: if capacity is less than 512KB, then freecache sets it to 512KB

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected