-->
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.  [ 7 posts ] 
Author Message
 Post subject: Request For Comments : Breaking change in SysCache config
PostPosted: Wed Oct 12, 2005 10:39 am 
Contributor
Contributor

Joined: Thu May 12, 2005 8:45 am
Posts: 226
As a follow-up to this thread http://nhibernate.sourceforge.net/forum/viewtopic.php?t=361, I want to change SysCache to use only one (1) expiration parameter.

The sliding expiration does not perform as any of us expected, and having a "static" expiration is not intuitive. I propose to have one property, say "expiration", that is X seconds in the future. The code would use a static expiration of DateTime.Now.AddSeconds( X ).

Thoughts?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 14, 2005 4:34 pm 
Newbie

Joined: Tue Oct 11, 2005 2:44 pm
Posts: 12
I think you should leave the two parameters, but change the meaning of staticExpiration to a fixed amount of secconds since an object is added in the cache.

Can't wait for this to get done. If you need help, I volunteer. The change should be trivial though.

Regards,
Cris


Top
 Profile  
 
 Post subject:
PostPosted: Sat Oct 15, 2005 4:22 am 
Senior
Senior

Joined: Sat May 14, 2005 8:40 am
Posts: 130
The one (semi-static) expiration parameter would be perfect for my needs. But you might wait a little and see if someone has a good case for keeping the sliding expiration parameter.

_________________
Cuyahoga


Top
 Profile  
 
 Post subject:
PostPosted: Sun Oct 16, 2005 7:44 am 
Contributor
Contributor

Joined: Thu May 12, 2005 9:45 am
Posts: 593
Location: nhibernate.org
IMO, as long as we can, we should keep the sliding expiration parameter. (remove it only if it is required...)

_________________
Pierre Henri Kuaté.
Get NHibernate in Action Now!


Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 10, 2005 10:26 pm 
Newbie

Joined: Tue Oct 11, 2005 2:44 pm
Posts: 12
Have you guys done any progress on this? It would be a life saver. Again, if you have no time for it, I volunteer.

Thanks,
Cris


Top
 Profile  
 
 Post subject:
PostPosted: Fri Nov 11, 2005 6:48 pm 
Contributor
Contributor

Joined: Thu May 12, 2005 8:45 am
Posts: 226
No one seemed to like my proposal, so I dropped it. Actually, I got busy and forgot about it.

I created a Jira issue for the slidingExpiration issue. http://jira.nhibernate.org/browse/NH-457


Top
 Profile  
 
 Post subject:
PostPosted: Sat Nov 12, 2005 8:09 pm 
Newbie

Joined: Tue Oct 11, 2005 2:44 pm
Posts: 12
IMHO the new parameter is a must have.

Thanks,
Cris


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 7 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.