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

Document thread-safety more clearly #33

Closed
alecbz opened this issue Jan 22, 2020 · 1 comment
Closed

Document thread-safety more clearly #33

alecbz opened this issue Jan 22, 2020 · 1 comment

Comments

@alecbz
Copy link

alecbz commented Jan 22, 2020

I imagine that it's safe to issue Get/Set/Fetch operations on the same cache from multiple threads, given the package is "aimed at high concurrency", and that the Clear method documents the opposite explicitly.

But if that's correct, might be good to call it out explicitly. Something like:

Unless otherwise noted (e.g., for Clear), methods on caches are thread-safe.

?

@karlseguin
Copy link
Owner

Sure
46ec5d2

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

2 participants