gather method

List<K> gather(
  1. EvictionPolicy policy,
  2. int num
)

Retries up to num items to be evicted according to policy.

Implementation

List<K> gather(EvictionPolicy policy, int num) =>
    _gatherers[policy]?.call(num) ?? [];