evictCount method

void evictCount(
  1. int count
)

淘汰多个最久未使用的数据

Implementation

void evictCount(int count) {
  for (var i = 0; i < count && _cache.isNotEmpty; i++) {
    _evict();
  }
}