thi-ng / umbrella

⛱ Broadly scoped ecosystem & mono-repository of 199 TypeScript projects (and ~180 examples) for general purpose, functional, data driven development
https://thi.ng
Apache License 2.0
3.41k stars 151 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 10 months ago

dengribar commented 10 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 10 months ago

This looks great & thanks for the effort! 👍