File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Caching » EhCache
Bookmark "EhCache implemenation for multimap" Watch "EhCache implemenation for multimap" New topic

EhCache implemenation for multimap

Mike Cheung
Ranch Hand

Joined: Feb 01, 2013
Posts: 106
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.
I agree. Here's the link:
subject: EhCache implemenation for multimap
It's not a secret anymore!