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.  [ 3 posts ] 
Author Message
 Post subject: Collection Caching
PostPosted: Mon Oct 31, 2005 7:00 am 
Newbie

Joined: Wed Mar 02, 2005 8:40 am
Posts: 2
Hi all,

I am quite new to ehcache, so excuse me if my question sounds stupid.

I am using ehcache1.1 with hibernate2.x. I am having caching problems when using 2L cache.

Say I have a Department object which has a set of Employees. Assume the Department object has been cached. My problem is the following:

When I add a new Employee, the Department Cache (namely, its employees collection) is NOT refreshed (although the employee is really added in the database).

I have tried the evict() method, but it has not worked as expected.

Any suggestions would be greatly appreciated.

Regards
Chris


Top
 Profile  
 
 Post subject: Is the collection in the Department cached?
PostPosted: Mon Oct 31, 2005 3:07 pm 
Beginner
Beginner

Joined: Wed Apr 06, 2005 9:29 pm
Posts: 24
Chis
Are you caching the collection of Employees in the department? If so, what is the "usage" set to?

John


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 01, 2005 4:56 am 
Newbie

Joined: Wed Mar 02, 2005 8:40 am
Posts: 2
Yes I am caching the collection within the Department. Useage is set to read-write.

Well, ok I can get the employees-collection cache and remove an item programatically once that item has been modified, deleted etc ... but, I think this can be done automatically, no?

Thanks & Regards
Chris


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

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.