MCPcopy Create free account
hub / github.com/allegro/bigcache / newIterator

Function newIterator

iterator.go:127–137  ·  view source on GitHub ↗
(cache *BigCache)

Source from the content-addressed store, hash-verified

125}
126
127func newIterator(cache *BigCache) *EntryInfoIterator {
128 elements, count := cache.shards[0].copyHashedKeys()
129
130 return &EntryInfoIterator{
131 cache: cache,
132 currentShard: 0,
133 currentIndex: -1,
134 elements: elements,
135 elementsCount: count,
136 }
137}
138
139// Value returns current value from the iterator
140func (it *EntryInfoIterator) Value() (EntryInfo, error) {

Callers 1

IteratorMethod · 0.85

Calls 1

copyHashedKeysMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…