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

new cache double check #21

Closed
kimmykuang opened this issue Oct 21, 2018 · 3 comments
Closed

new cache double check #21

kimmykuang opened this issue Oct 21, 2018 · 3 comments

Comments

@kimmykuang
Copy link

what are the advantages doing double check table name exists in cache2go.Cache?

@muesli
Copy link
Owner

muesli commented Oct 21, 2018

See: #11

Essentially: between read-locking and locking, the table might have been created in another thread.

@muesli muesli closed this as completed Oct 21, 2018
@kimmykuang
Copy link
Author

thanks.

@Deep-Coder-zhui
Copy link

@muesli ,I think the RLock() may be not needed because of the double check

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

No branches or pull requests

3 participants