Skip to content
New issue

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

Fix cache concurrency and errors after destroy #9

Merged
merged 2 commits into from
Apr 6, 2021
Merged

Fix cache concurrency and errors after destroy #9

merged 2 commits into from
Apr 6, 2021

Conversation

jhiesey
Copy link
Collaborator

@jhiesey jhiesey commented Apr 6, 2021

  • Without calling this.cache.remove in put, subsequent get calls may get old values out of the cache
  • Calling methods after close or destroy should call the callback instead of throwing

@feross feross merged commit 092b5c5 into feross:master Apr 6, 2021
@feross
Copy link
Owner

feross commented Apr 6, 2021

Good catch! Published as 3.1.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants