Hi, I'm looking for a solution to implement a memory cache with the following properties:
- data replication in a cluster
- transactional operation and locking
- write caching: all inserts/updates should be performed immediately in memory but flushing to database should only be executed in batches at regular intervals, using a write-ahead log (synchronized to disk)
So I'm learning Hibernate and trying to use it with TreeCache. I'm using the hbcache example (
http://wiki.jboss.org/wiki/Wiki.jsp?pag ... oneExample ) modified to use postgres, and all the inserts seem to get flushed to the db immediately. How can I change that?
Also, am I going the right way with Hibernate and TreeCache? Or is there a better solution?
Thanks
Adrian