[jboss-user] [JBoss Cache: Core Edition] - Expiring elements after restarting cache

tugman do-not-reply at jboss.com
Sun Apr 13 19:41:03 EDT 2008


I'm using FileCacheLoader to store elements of cache in disk and LRU eviction policy. If I put a node in cache, after "timeToLiveSeconds" passed, it is removed (and my listener gets called). This is ok.

My problem is that when I restart de cache, elements that are stored there are reloaded, but never more get expired and stay there forever. I think they should expire not just because maxNodes were reached; after restart, "TimeToLiveSeconds" should work for elements loaded from disk like it was before restarting.

Is there a way to have this behaviour ?

Thanks in advance.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4143749#4143749

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4143749

More information about the jboss-user mailing list