-
Notifications
You must be signed in to change notification settings - Fork 0
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
Multithreaded Cache Manager Use #100
Comments
@jcarreira having a thread safe cache manager means that the eviction policy needs to be thread safe as well. Would it be better to force the user to enforce thread safety, or to simply put a lock around the policy that allows only one operation at a time? |
Currently the cache is based on an |
Using a The only big downside seems to be the creation of an extra dependency. |
Currently the |
It seems like a good idea to put the cuckoohashmap into the cache manager. However, one challenge may be the way its find method returns values.
The issue with update could be resolved by instead using However, the issue with find still remains, and would likely cause an extra copy to be incurred, which may be unacceptable. |
It is feasible that an application could have multiple threads working concurrently using the same cache. There should be a test to ensure that the cache manager is thread safe and behaves properly in these situations.
The text was updated successfully, but these errors were encountered: