-->
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.  [ 4 posts ] 
Author Message
 Post subject: NHibernate.Caches.Prevalence Problem
PostPosted: Wed Dec 07, 2005 9:58 pm 
Newbie

Joined: Wed Dec 07, 2005 9:43 pm
Posts: 4
I am using NHibernate.Caches.Prevalence for my second level cache.

When I load the data from DB in the first time, the cache works. The cache saves the data into files on disk.

But it seems that the data it stored would never be expired. :shock:

Envirement:
In dll.config
<add key="hibernate.cache.provider_class" value="NHibernate.Caches.Prevalence.PrevalenceCacheProvider, NHibernate.Caches.Prevalence" />
<add key="relativeExpiration" value="20" />

In hbm.xml:
<cache usage="read-only"></cache>

I use NUnit to run the dll.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 08, 2005 11:49 am 
Contributor
Contributor

Joined: Thu May 12, 2005 8:45 am
Posts: 226
"relativeExpiration" is a config setting for SysCache, not PrevalenceCache. Could you post your logs? At the DEBUG level they should show some caching messages.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 08, 2005 10:17 pm 
Newbie

Joined: Wed Dec 07, 2005 9:43 pm
Posts: 4
I think the problem I met is that the cache didn't expire.

Is there an expiration config setting for PrevalenceCache?


Top
 Profile  
 
 Post subject:
PostPosted: Sat Dec 10, 2005 3:10 am 
Contributor
Contributor

Joined: Thu May 12, 2005 8:45 am
Posts: 226
No, not at the moment.


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