It can be used to keep the size of your map small by removing items that may no longer be needed because they have not been accessed. Ideally, if a key value is not in the map (but needs to be), it can be computed again and then placed back into the map with possibly an updated value for the given key.
3 comments
[ 1.5 ms ] story [ 13.0 ms ] thread[1]https://vivasoftltd.com/golang-mistakes-1-maps-and-memory-le...
[2]https://medium.com/@quicktechlearn/maps-and-memory-leaks-in-...