selectEntry method
Returns true
if entry
is a better candidate for eviction than the
current selectedEntry
entry
: The current entryselectedEntry
: The current selected entrynow
: The current time
Implementation
@override
bool selectEntry(CacheInfo entry, CacheInfo selectedEntry, DateTime now) {
return entry.creationTime.isBefore(selectedEntry.creationTime);
}