We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
when I use delete map[somekey] in my code, I find that golang will not delete the key, but mark the key as empty instead.
Here are my questions: when a key was marked as empty, golang’gc will not free the memory? This map may cause memory leak, Is that reasonable?
The text was updated successfully, but these errors were encountered:
I think this is more about Go's builtins than go-cache. It seems like there's a relevant issue here: golang/go#20135
Sorry, something went wrong.
No branches or pull requests
when I use delete map[somekey] in my code, I find that golang will not delete the key, but mark the key as empty instead.
Here are my questions:
when a key was marked as empty, golang’gc will not free the memory? This map may cause memory leak, Is that reasonable?
The text was updated successfully, but these errors were encountered: