LeastRecentlyUsedStrategy<TIdentifier, TValue> constructor

LeastRecentlyUsedStrategy<TIdentifier, TValue>(
  1. int _keep
)

Implementation

LeastRecentlyUsedStrategy(this._keep) {
  if (_keep < 0) {
    throw ArgumentError(
        'Cannot keep a negative number of most recently used items in the cache');
  }
}