[jboss-user] [JBoss Cache: Core Edition] - Re: expiration algorithm not working
galder.zamarreno@jboss.com
do-not-reply at jboss.com
Wed Jul 22 03:15:35 EDT 2009
Read docu: "The expiration time is indicated using the org.jboss.cache.Node.put() method, using a String key expiration and the absolute time as a java.lang.Long object, with a value indicated as milliseconds past midnight January 1st, 1970 UTC (the same relative time as provided by java.lang.System.currentTimeMillis() )."
The key has to be absolute time, whereas you're giving it a relative time:
child.put(ExpirationAlgorithmConfig.EXPIRATION_KEY, 100);
And @mjdinsmore, it's not the same issue that you have in the other forum entry
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4245198#4245198
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4245198
More information about the jboss-user
mailing list