patrickmn / go-cache

An in-memory key:value store/cache (similar to Memcached) library for Go, suitable for single-machine applications.
https://patrickmn.com/projects/go-cache/
MIT License
8.16k stars 874 forks source link

Memory can not been freed #109

Closed jiaoji100 closed 5 years ago

jiaoji100 commented 5 years ago

Delete the key of a map,memory can not been freed. How to Solve the Problem

patrickmn commented 5 years ago

Not sure what you mean. If the thing that was in the map is no longer reachable anywhere else, it will be garbage-collected.