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

Loadable cache still allows double calls to a loading function #271

Open
advoretsky opened this issue Feb 11, 2025 · 0 comments
Open

Loadable cache still allows double calls to a loading function #271

advoretsky opened this issue Feb 11, 2025 · 0 comments

Comments

@advoretsky
Copy link
Contributor

advoretsky commented Feb 11, 2025

After the work done under

To make it 100% correct the whole logic of the Get function should be put behind a lock. One way to do this is to move everything under the singleFlight call

advoretsky pushed a commit to advoretsky/gocache that referenced this issue Feb 11, 2025
eko added a commit that referenced this issue Apr 12, 2025
move whole logic of Get under singleFlight #271
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

1 participant