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

Method Iterator

bigcache.go:227–229  ·  view source on GitHub ↗

Iterator returns iterator function to iterate over EntryInfo's from whole cache.

()

Source from the content-addressed store, hash-verified

225
226// Iterator returns iterator function to iterate over EntryInfo's from whole cache.
227func (c *BigCache) Iterator() *EntryInfoIterator {
228 return newIterator(c)
229}
230
231func (c *BigCache) onEvict(oldestEntry []byte, currentTimestamp uint64, evict func(reason RemoveReason) error) bool {
232 oldestTimestamp := readTimestampFromEntry(oldestEntry)

Calls 1

newIteratorFunction · 0.85