MCPcopy Index your code
hub / github.com/upper/db / init

Method init

internal/cache/cache.go:72–75  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

70}
71
72func (c *Cache) init() {
73 c.items = make(map[uint64]*list.Element)
74 c.keys = list.New()
75}
76
77// Read attempts to retrieve a cached value as a string, if the value does not
78// exists returns an empty string and false.

Callers 2

NewCacheWithCapacityFunction · 0.95
ClearMethod · 0.95

Calls 1

NewMethod · 0.65

Tested by

no test coverage detected