go-pkgz / lcw

Loading Cache Wrapper
https://go-pkgz.umputun.dev/lcw/
MIT License
20 stars 5 forks source link

Remove unused delete() call, revert LoadingCache.purge changes #48

Closed paskal closed 1 month ago

paskal commented 1 month ago

purge call became broken in 41ffddb34, this change reverts it to the old behaviour so that memory won't be freed on its call. It's called relatively frequently and so copying the data map each time it happens would be too costly and unjustified.