permaculture playing cards*
The moose likes EhCache and the fly likes EhCache implemenation for multimap Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Caching » EhCache
Bookmark "EhCache implemenation for multimap" Watch "EhCache implemenation for multimap" New topic
Author

EhCache implemenation for multimap

Mike Cheung
Ranch Hand

Joined: Feb 01, 2013
Posts: 58
Hi, I need to represent in memory a table structure and while I can use a hashmap of a hashmap to do this, my initial search online suggests that there will be threading issues for concurrent access. In addition, I'd like to be able to assign call backs upon updates and it appears EhCache provides this out of the box, amongst other good features such as cache replication for clustering. So I went on to try to find some code samples for EhCache for representing a table in memory that will be thread safe and allow concurrent read / write without luck. Am new to EhCache. Can someone point me to any code samples that illustrate how this can be done via EhCache? Thanks.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: EhCache implemenation for multimap
 
Similar Threads
Conversion In Collections
synchronized and ReentrantReadWriteLock
Locking Schemes: Tactical View 01
How to handle large heap requirement
Thread and Process