isaacs/node-lru-cache

For each doesn't remove all stale entries

Closed this issue · 1 comments

As for each has two boundaries namely: k which decrements and i which increments, it will not delete all stale children inside the cache.

Example:

Cache has 3 entries, all stale, the least recently used one won't be removed from the cache.

Fixed on f149d74