evictCount method
淘汰多个最久未使用的数据
Implementation
void evictCount(int count) {
for (var i = 0; i < count && _cache.isNotEmpty; i++) {
_evict();
}
}
淘汰多个最久未使用的数据
void evictCount(int count) {
for (var i = 0; i < count && _cache.isNotEmpty; i++) {
_evict();
}
}