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