Travis
On 24/07/2008, at 4:01 AM, Travis Reeder wrote:
Just a quick question on how this should behave.
Lets say you had 100 threads all try to get from a cache with the same key, would it call the CacheLoader 100 times for the same key or once and return null for the next 99 until the item is fully loaded?
It would call the loader 100 times.
If you want more sophisticated behaviour use SelfPopulatingCache, which will block the other requests while the first one does the work.
This is yet one more thing we need to toss around in the EG. From the point of view of protecting backing resources the blocking approach is much better.
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/_______________________________________________
ehcache-list mailing list
ehcache-list@...
https://lists.sourceforge.net/lists/listinfo/ehcache-list
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/_______________________________________________
ehcache-list mailing list
ehcache-list@...
https://lists.sourceforge.net/lists/listinfo/ehcache-list