You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be useful to have some way of knowing when an item is removed from the LRU. If there is some cleanup/disposing logic that need to be done to the stored values, right now there is no way to do it when using a maximumSize, as the entries are removed implicitly.
I propose the following API
final lruMap =LruMap(
onItemRemoved: (key, value) {
value.dispose();
},
)
The text was updated successfully, but these errors were encountered:
It would be useful to have some way of knowing when an item is removed from the LRU. If there is some cleanup/disposing logic that need to be done to the stored values, right now there is no way to do it when using a
maximumSize
, as the entries are removed implicitly.I propose the following API
The text was updated successfully, but these errors were encountered: