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
gcache/simple.go
Line 123 in ecee3be
The text was updated successfully, but these errors were encountered:
sort of...getValue() checks if the item has expired, and deletes it if it has. So you'd have to convert the reader lock to a full lock.
getValue()
Sorry, something went wrong.
Also the cache engine supports a loaderFunc that will attempt to generate a value if it's not found in the cache. That would also require a real Lock.
loaderFunc
No branches or pull requests
gcache/simple.go
Line 123 in ecee3be
can here use RLock to decrease lock race?
The text was updated successfully, but these errors were encountered: