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
cache.locks[segId].Lock() // 对于同一个Key读是堵塞的么? value, err = cache.segments[segId].get(key, hashVal) cache.locks[segId].Unlock()
The text was updated successfully, but these errors were encountered:
读多写少的场景。这个是可以换RWMutex的不?
RWMutex
Sorry, something went wrong.
It's not read only, get modifies the access time of the entry.
get
No branches or pull requests
The text was updated successfully, but these errors were encountered: