-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: TreeCache, invalidation on update for transactional cache?!
PostPosted: Fri Jul 21, 2006 11:41 am 
Newbie

Joined: Fri Jul 21, 2006 10:32 am
Posts: 1
Heya,

Im running into troubles with TreeCache and invalidate-on-update issue. For EHCache or OScache thats the behaviour I would expect, but why for TreeCache?
I start the transaction. Read an object. Modify it. Commit.
I get the object from cache while reading, but when commiting the cache is invalidated and I hit db. Okay, its normal behaviour some say, but I need to buffer the changes which take place 100/sec per cluster-node, and updates always come with prev reads. I cant do db-updates just like that. I need some buffering.

There;s an regular hibernate optimistic locking with versioning applied to that class. The TM is either HibTM or some JTA (JOTM).

I would like to see TreeCache update in-memory. In case of invalidate-on-update there's of course no place for eviction policies.

I realize that such approach is safe for multithread/cluster env, but still maybe there is a way to do that?

Any help will be appreciate.
Cheers
Mike


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.