thi-ng / umbrella

⛱ Broadly scoped ecosystem & mono-repository of 198 TypeScript projects (and ~175 examples) for general purpose, functional, data driven development
https://thi.ng
Apache License 2.0
3.31k stars 144 forks source link

fix(cache): attempt to add element bigger than `maxsize` blocks addition of any new elements to the cache #444

Closed dengribar closed 6 months ago

dengribar commented 6 months ago

On attempt to add an element bigger than maxsize, regardless of the fact that the element isn't actually added to the cache, size of that element is added to this._size, blocking addition of any new elements to the cache

postspectacular commented 6 months ago

This looks great & thanks for the effort! 👍