jcs - Java Caching System MaxLife vs MaxLifeSecond -
i'm using java caching system (jcs - https://commons.apache.org/proper/commons-jcs/ )
i'd know difference between maxlife , maxlifeseconds
maxlife: if specify elements within region not eternal, can set max life seconds. if exceeded elements removed passively when client tries retrieve them. if using memory shrinker, items can removed actively.
maxlifeseconds: if elements not eternal, option defines maximum life of each object before removed. if memory shrinker running, objects removed shrinker; if not, removed when they're accessed. option defaults -1, disables option.
these definitions seem same.
is change in name?
my guess maxlifeseconds depricated.
with jcs 2.0-beta-1 have:
cacheaccess.getcachecontrol().getelementattributes().setmaxlife(arg0); cacheaccess.getcachecontrol().getelementattributes().getmaxlife();
and jcs documentation lists maxlife region (element) property
in old mailing list archive (thu, 11 may 2006 ) find reference maxlifeseconds in message upgrading jcs version 1.2.7.0
Comments
Post a Comment